Was this helpful?
printscreen Statement--Copy the Displayed Screen
This statement prints or stores in a file a snapshot of what is currently displayed on the terminal screen.
Syntax
printscreen [(file = filename)]
Description
The printscreen statement prints or stores in a file a copy of the current form and the character representation of its associated data.
Filename identifies where the copy is sent. You can use a quoted or unquoted string literal or a program variable for filename.
To store the copy in a file, filename must specify a valid file name. If the file is an existing file, the screen snapshot is appended to the end of the file.
To send the copy to the printer, filename must be the word printer. The copy is sent directly to your installation's default printer.
If you do not include the printscreen argument, the copy is stored in the location specified by II_PRINTSCREEN_FILE (if II_PRINTSCREEN_FILE is defined). If II_PRINTSCREEN_FILE has not been defined, you are prompted for the name of the file. You can specify a file or printer. (See the System Administrator Guide for information about setting II_PRINTSCREEN_FILE.)
Examples--printscreen statement:
Example 1:
Send a copy of the form to the printer.
exec frs printscreen (file = 'printer');
Example 2:\
Store a copy of the current form in the file designated by the filevar program variable, which is initialized at the start of the program.
exec frs prompt ('Specify default file for screens: ',
                 :filevar);
if (filevar = '' then
    filevar = 'printer';
end if;
...
exec frs printscreen (file = :filevar);
Last modified date: 08/14/2024