sParams | (String) Additional parameters that define the print type (file, printer, etc.). If it is empty string, then the screen is printed to a printer with the window for the printer selection. Entries are in the KeyVal format, for example "printer:select;screen:all;".
"printer:xxx;" (optional) - Specifies the printer
select (default) - Printing to a printer with the possibility to select a printer and to change the settings (orientation, resolution, etc.) by means of the input window.
default - Printing to the Windows OS default printer (without the input window). It isn't possible to change the print settings (orientation, resolution, etc.).
file:filepath - The file name with the path (*.bmp, *.png, *.jpg, *.gif or *.tif), where the screen is stored. The file extension specifies the graphic format. It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders. |
---|
Pm.PrintScreen("printer:select;");
Pm.PrintScreen("printer:file:#temp:screen.png;");