JAVA Tech VERSION 3.0 Method isPrintDialog, Method setPrintCopiesinteger, Method setPrinterstring

Models: VERSION 3.0

1 88
Download 88 pages 5.41 Kb
Page 58
Image 58

Method: isPrintDialog()

E.g. var dialog = ViewONE.isPrintDialog();

Returns a Boolean ‘True’ if the print dialog is enabled, ‘False’ if it is not.

Method: setPrintCopies(integer)

E.g. ViewONE.setPrintCopies(2);

This method is effective only when the print dialog is disabled (by calling setPrintDialog(false) or using the equivalent HTML tag). This method sets the number of copies that will be printed when printing a page, pages or the document.

Method: setPrinter(string)

E.g. ViewONE.setPrinter(“myprinter”);

This method is effective only when the print dialog is disabled (by calling setPrintDialog(false) or using the equivalent HTML tag). This method sets the ViewONE default printer to the one specified as the parameter. The parameter must be the ‘name’ (or unique part thereof) as seen by the users printer settings. The printers’ default settings will be used for each print (e.g. orientation, resolution etc).

58

Page 58
Image 58
JAVA Tech VERSION 3.0 manual Method isPrintDialog, Method setPrintCopiesinteger, Method setPrinterstring