Promotic
WikipediaLinkedInYoutubeTwitterFacebook

PrintScreen - method of the Pm object

Description:
Print the whole screen to a printer or into the file.
Syntax:
Empty PrintScreen(String sParams)
Parameters:
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 KeyVal format, for example "printer:select;".
"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 OS Windows 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.
Note:
This method is not functional in Web panels.
Example1:
Print the screen to a printer with the possibility to set the printer.
JavaScriptVBScriptSelect and copy to clipboard

Pm.PrintScreen("printer:select;");
Example2:
Print the screen into the file #temp:screen.png;.
JavaScriptVBScriptSelect and copy to clipboard

Pm.PrintScreen("printer:file:#temp:screen.png;");
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- PrintScreen
 
 
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice