Was this helpful?
Printscreen
Prints or stores in a file a copy of the current frame and its data.
Syntax
printscreen [(file = filename | 'printer')]
filename
Specifies the name of a file to the end of which a copy of the frame and its data are appended. It is a character string expression.
'printer'
Specifies a quoted string that causes the file to be sent directly to a printer utilizing the operating system print command
Description
The 4GL printscreen statement either prints or stores in a file a copy of the current frame and its associated data. To store the copy in a file, specify a valid file name. The copy is appended to the end of the current contents, if any, of that file. If you specify the quoted string 'printer', the copy goes directly to a printer.
If you omit the parameter to the command, the copy goes to a default file (defined with the logical/environment variable II_PRINTSCREEN_FILE) if one exists. Otherwise, Ingres prompts you for the name of the file. You enter the name of the file, or specifies "printer" to print the copy.
Examples
Send a copy of the current frame to the printer:
printscreen (file = 'printer');
Store a copy of the current frame in the file designated in the printfile field of the form:
printscreen (file = printfile);
Store a copy of the current frame in a file called screen.txt:
printscreen (file = 'screen.txt');
Last modified date: 04/03/2024