This function is used to set the following parameters for Adelia-type printing:
the spool file back up directory,
the immediate printing of a spool file or its generation only,
the possible automatic deletion of the spool files after they were printed.
Context
Windows client,
Adelia Cloud client.
Parameters
BOOL |
Permanent |
Specifies whether or not the new parameters are taken into account for the current session only (*FALSE) or permanently (*TRUE) (the configuration file "wicfgva.ini" will be modified). |
ALPHA |
SpoolDir |
Path to the spool file back up directory. |
BOOL |
ImmediatePrint |
*TRUE immediate printing is requested, |
BOOL |
DeleteSpool |
*TRUE the spool file is deleted after it was printed, |
BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was successful. *FALSE if the operation failed. |
Note: In order for the new value of the path to the spool file back up directory to be taken into account efficiently, the function must be called before the OPEN instruction.
Example
The parameters are set for the session only; the spool files are generated in the "c:\spool" directory; the spool file is printed immediately, then it is deleted.
BOOL |
Permanent |
ALPHA(256) |
SpoolDir |
BOOL |
ImmediatePrint |
BOOL |
DeleteSpool |
BOOL |
ReturnCode |
Permanent |
= *FALSE |
SpoolDir |
= 'c:\spool' |
ImmediatePrint |
= *TRUE |
DeleteSpool |
= *TRUE |
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSetAdeliaPrintSettings' Permanent SpoolDir ImmediatePrint DeleteSpool ReturnCode
List of the VaToolBx functions by topic