In the application program, you want to adjust the spool dialog to your requirements when printing a PDF-based form, or hide the spool dialog completely.
If a form is migrated from a Smart Form, or if it is compatible with Smart Forms, the spool dialog is controlled by different parameters.
For more information, see the following:
Controlling the Spool Dialog in the Smart Forms documentation
The DEVICE parameter of the structure SFPOUTPUTPARAMS must have the value ’PRINTER’.
The following Changing parameters (set with the function module FP_JOB_OPEN) are relevant for controlling the spool dialog:
Fields from the Structure SFPOUTPUT (Included in SFPOUTPUTPARAMS) for Controlling the Spool Dialog
Field |
Component Type Data Type (Length) |
Meaning (when set) |
NODIALOG |
FPNODIALOG CHAR(1) |
Suppress user dialog Note: is located directly in SFPOUTPUTPARAMS |
TITLE |
FPTITLE CHAR(50) |
Title of the dialog box |
NOPREVIEW |
FPNOPREVIEW CHAR(1) |
Suppress print preview |
NOPRINT |
FPNOPRINT CHAR(1) |
No print from print preview |
NOARCHIVE |
FPNOARCHIVE CHAR(1) |
No archiving from print preview |
IMMEXIT |
FPIMMEXIT CHAR(1) |
Exit preview immediately after printing |
NOPRIBUTT |
FPNOPRIBUTT CHAR(1) |
No pushbuttons |
In the application program, call the function module FP_JOB_OPEN and specify the required parameters. To set a parameter with the data type CHAR(1), specify the value ’X’ (for example, NODIALOG = ’X’, to suppress the user dialog).
See also:
Example: Calling Forms in an Application Program