omron — PrintWindow

Appendix: Built-in Scripting Language optNumID This is an optional parameter; the default value is 0. The specific instance number of the screen. (The ID is assigned when the screen is opened with the Open function.) This is an optional parameter; the default ID is 0. Returned value Examples PrintSetup Opens the standard setup dialog from the operating system, from where the printer can be selected and configured. Note: This function cannot be used with Tasks or in the Global Procedures script. Syntax PrintSetup() This function takes no parameters. Returned value No returned values. Examples PrintSetup() PrintWindow 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. InduSoft Web Studio Page 539 Value Description 3 Writes the BOTTOM screen coordinate to the tag specified by the tagResult parameter. 4 Writes the RIGHT screen coordinate to the tag specified by the tagResult parameter. 0 Success -1 The first and/or second parameters are not strings. -2 Memory allocation error. -3 optNumResultType is zero, but tagResult does not specify an array tag. -4 Invalid tag by the tagResult parameter.

Tag Name Expression TagErrorCode GetScrInfo( "main" , "TagXY[0]" ) // Retrieves the TOP, LEFT, BOTTOM and RIGHT coordinates of the "main" screen and then writes them to the first four positions of the array tag TagXY. TagErrorCode GetScrInfo( "main", "TagXY", 3 ) // Retrieves the BOTTOM coordinate of the "main" screen and then writes it to TagXY. TagErrorCode GetScrInfo( "main" , "TagXY", 2, 10 ) // Retrieves the LEFT coordinate of the "main" screen with ID 10 and then writes it to TagXY.

Function Group Execution Windows Embedded Thin Client PrintSetup Graphic Asynchronous Supported Supported Supported Function Group Execution Windows Embedded Thin Client PrintWindow Graphic Asynchronous Supported Supported Supported