Promotic
WikipediaLinkedInYoutubeTwitterFacebook

PrintScreen - method of object Pm

Description:
Printing the whole screen to a printer or to a file.
Syntax:
PrintScreen(sParams As String)
Calling:
Pm.PrintScreen sParams
Parameters:
sParams(String) Additional parameters that define the print type (file, printer, etc.). If it is empty, the screen is printed to the printer with the window for the printer selection. Entries are in format PmNamedValues, for example "printer:select;".
"printer:xxx;" (optional) - Setting the printer
select (default) - Printing to the 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 - Name of the file (*.bmp, *.png, *.jpg, *.gif or *.tif) with path, where the screen is stored. The file extension determines 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 for Web Panels.
Example1:
Print the screen to the printer with the possibility to set the printer.
Pm.PrintScreen "printer:select;"
Example2:
Printing the screen into file #temp:screen.png;.
Pm.PrintScreen "printer:file:#temp:screen.png;"
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