Returning the number and names of available print formsΒΆ

EnumPrintForms()

Return number and names of available print forms


SYNTAX

EnumPrintForms(printer_name, form_names, form_numbers)

Returns the number of print forms available for the printer specified in printer_name. The names of the forms are stored in form_names, which should be an alphanumeric array field, and the corresponding form numbers are stored in the array form_numbers.

A print form can be selected by calling the function SetPrintProperty() to set the property PP_PAPERSIZE to the form number required.


EXAMPLE

!temp NumForms,,u1
!temp FormNames,,a40[100]
!temp FormNumbers,,i1[100]

     NumForms = EnumPrintForms(Printer,FormNames,FormNumbers))

RELATED TOPICS

Reports

Report functions