Products Downloads


French version


 

 

This function is used to list the font sizes of a given printer or the screen.

 

Context

  • Windows client,

  • Adelia Cloud client,

  • Event Adelia client.

 

Parameters

ALPHA

PrinterName

Name of the printer for which you want to list the font sizes. If PrinterName = *BLANK the screen font sizes are listed.

ALPHA

FontName

Font name.

NUM_BIN_2

FontSize

Result size.

NUM_BIN_2

FontSizeNum

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, FontSizeNum 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

*BLANK

FontName

= 'Courier'

FontSizeNum

= 0

 

LOAD_DLL 'VaToolBx'

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEnumPrinterFontSize' PrinterName FontName FontSize FontSizeNum ReturnCode

DO_WHILE ReturnCode= *TRUE

*/ FontSize contains the size of the font

FontSizeNum = FontSizeNum + 1

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEnumPrinterFontSize' PrinterName FontName FontSize FontSizeNum ReturnCode

REDO

UNLOAD_DLL 'VaToolBx'

 

 

List of the VaToolBx functions by topic

 

↑ Top of page

  • Aucune étiquette