Method XbpPrinter():setFormSize() Foundation

Retrieves or sets the size of the output media.

:setFormSize( [<nFormID>] ) --> nFormIDOld | NIL
A #define constant from XBPDEV.CH must be used for <nMode>. Valid constants have the prefix XBPPRN_FORMSIZE_. Alternatively, a value obtained via the :forms() method can be used.

The method returns the previous setting or NIL, if the printer does not support this option.


The method is used to instruct the printer what paper format is being used. Common formats are Letter, Legal or A4, A3, for example. They are selected by their numeric ID which is available as a #define constant.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.