This function is used to enumerate the PaperSizeName (paper size) + PaperSizeValue (associated internal value) combinations for a given printer.
Context
Windows client,
Adelia Cloud client,
Event Adelia client.
Parameters
ALPHA |
PrinterName |
Name of the printer for which the paper sizes supported are to be listed. |
NUM_BIN_4 |
PaperSizeValue |
Value assigned to the paper size. |
ALPHA |
PaperSizeName |
Paper size name. |
NUM_BIN_2 |
PaperSizeNameLg |
Size of the PaperSizeName buffer. |
NUM_BIN_2 |
PaperSizeNum |
Increment number in the list. |
BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was completed successfully. *FALSE if the operation failed. |
Note: The first time this function is called, PaperSizeNum must be set to 0. This parameter must then be incremented by 1 before each new call, until the ReturnCode returns *FALSE. In addition, the VatoolBx DLL must remain loaded until the end of the enumeration.
Example
PrinterName = '\\PRTSRV\PRINTER1'
PaperSizeNum = 0
LOAD_DLL 'VaToolBx'
CALL_DLL 'VaToolBx.Dll' 'VaToolBxEnumPrinterPaperSize' PrinterName PaperSizeValue PaperSizeName PaperSizeNameLg PaperSizeNum ReturnCode
DO_WHILE ReturnCode = *TRUE
/* PaperSizeValue and PaperSizeName specified
PaperSizeNum = PaperSizeNum + 1
CALL_DLL 'VaToolBx.Dll' 'VaToolBxEnumPrinterPaperSize' PrinterName PaperSizeValue PaperSizeName
PaperSizeNameLg PaperSizeNum ReturnCode
REDO
UNLOAD_DLL 'VaToolBx'
List of the VaToolBx functions by topic