Prints a screenshot of a project screen. The screen does not need to be open and active; the function can print a screen running in the background or even closed screen file.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
PrintWindow | Graphic | Asynchronous | Supported | Supported | Supported |
PrintWindow( strScreenName , optNumOrientation, optNumID, optStrMnemonicList )
Value | Description |
---|---|
0 | Portrait |
1 | Landscape |
Default value is 0.
#Label:Value
…where Label is the name of the property and Value is the tag, expression or literal value that the property will receive. You can declare two or more mnemonics, as long as they are separated by spaces. See the Examples section below for an example.
This function does not return any value.
Tag Name | Expression |
---|---|
PrintWindow( ) // Prints the currently active screen in portrait orientation. | |
PrintWindow( "Main", 1 ) // Prints the "Main" screen in landscape orientation. | |
PrintWindow( TagScreenName ) // Prints the screen specified by TagScreenName. | |
PrintWindow( "Main", 1, 10 ) // Prints the "Main" screen with ID 10. | |
PrintWindow ( "Main", 1, 0, "#Mne1:Tag1 #Mne2:Tag2" ) // Prints the "Main" screen, replacing the custom properties Mne1 and Mne2 with Tag1 and Tag2, respectively. |