Products Downloads


French version


 

 

This function is used to enumerate the fonts of a given printer or the screen.

 

Context

  • Windows client,

  • Adelia Cloud client.

 

Parameters

ALPHA

PrinterName

Name of the printer whose fonts are to be listed. If PrinterName = *BLANK the screen's fonts are listed.

ALPHA

FontName

Font name.

NUM_BIN_2

FontNameLg

Size of the FontName buffer.

NUM_BIN_2

FontNum

Increment number in the list.

NUM_BIN_2

Type

0 :  All font types.

1 :   Non-proportional fonts.

2 :   Proportional fonts.

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, FontNum 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'

FontNum

= 0

Type

= 0

 

LOAD_DLL 'VaToolBx'

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEnumPrinterFontName' PrinterName FontName FontNameLg FontNum Type ReturnCode

DO_WHILE ReturnCode= *TRUE

*/ FontName contains the name of the font

FontNum = FontNum + 1

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxEnumPrinterFontName' PrinterName FontName FontNameLg FontNum ReturnCode

REDO

UNLOAD_DLL 'VaToolBx'

 

 

List of the VaToolBx functions by topic

 

↑ Top of page

  • Aucune étiquette