- This function now replaces the VaToolBxQueryPrinter function.
- It only concerns Crystal Reports reports.
- It is ignored in ACRPE print mode.
This function is used to retrieve from the standard printer selection box the following print parameters:
Printer name,
Orientation,
Paper size,
Tray selection,
Duplex mode,
Number of copies,
Copy collation.
Context
Windows client,
Adelia Cloud client.
Parameters
ALPHA(n) |
PrinterName |
Retrieved name of the printer. |
NUM_BIN_2 |
PrtNameSize |
Length of the PrinterName variable. |
NUM_BIN_2 |
Orientation |
Orientation of the retrieved printer (1 = Portrait, 2 = Landscape). |
NUM_BIN_2 |
PaperSize |
Indicates the size of the paper used for the print job. |
NUM_BIN_2 |
Tray |
Indicates the printer's paper feed source. |
NUM_BIN_2 |
Duplex |
1=None, 2=Long side, 3=Short side. |
NUM_BIN_2 |
NbCopies |
Number of copies to be printed. |
NUM_BIN_2 |
Collate |
Used to collate the printed copies of the documents. 0=Copies not collated, 1=Copies collated. |
BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was successful. *FALSE if the operation failed. |
Example
ALPHA(100) NUM_BIN_2 NUM_BIN_2 NUM_BIN_2 NUM_BIN_2 NUM_BIN_2 NUM_BIN_2 NUM_BIN_2 BOOL PrtNameSize |
PrinterName PrtNameSize Orientation PaperSize Tray Duplex NbCopies Collate ReturnCode = 100 |
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxQueryPrinterEx' PrinterName PrtNameSize Orientation PaperSize Tray Duplex NbCopies Collate ReturnCode
List of the VaToolBx functions by topic