Promotic

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 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.
"screen:xxx;" (optional) - Specifies the print screen. Relevant if the system contains multiple screens.
primary (default) - Primary screen
fromPoint - The screen that contains or is closest to the specified point.
all - All screens
"point:x,y;" (optional) - For the screen:fromPoint; option it defines the point for specifying the screen. For example point:2500,500;
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;");

History:
Pm9.00.19: Added the "screen:xxx;" parameter and the "point:x,y;" parameter.
PROMOTIC 9.0.21 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.