Print String()

Syntax:

PrintString(String, PrintDialog, CancelDialog, Landscape)

Parameters:

String – the string of characters to print. Surround the string with quotation marks to specify the string itself (e.g: "Hello World") or use a variable name (without quotes) to print the contents of that variable (e.g: LOGIN_USERNAME)

PrintDialog – display the printer poperties dialog box before printing. PrintDialog can be true or false. If true the print dialog box will appear. If false, the print dialog will not appear. This parameter is optional and the default is false.

CancelDialog – display the Cancel dialog box while the page is printing. CancelDialog can be true or false. If true, the cancel dialog will appear. If false, the cancel dialog will not appear. This parameter is optional and the default is true.

Landscape – print the page in landscape format unless overridden by the user via the Print Dialog if provided. The options are true or false. If false the output will default to portrait orientation. This parameter is optional and the default is true.

Remarks:

This function will print the specified string. It will use the default font and page size from the printer and will fill the page to the maximum margins available for that printer. For very long strings it will automatically print continuation pages as required.

image\Script_Button.jpgExamples