Stores information about the supported paper sizes into an array.
APaperSizes(cArrayName, cPrinter, cPort [, nUnit])
Parameters
- cArrayName
On return the array contains the following information. Column Content Datatype 1 Paper ID - see documentation for the dmPaperSize member of the DEVMODE structure N 2 Name C 3 Width of the papersize in the requested unit N 4 Length of the papersize in the requested unit N
- cPrinter
Name of the printer for which to enumerate the paper sizes.
- cPort
Name of the port to which the printer is connected.
- nUnit (optional)
default = PAPERSIZE_UNIT_MM
Controls the unit of measurement in which the width and length of papersizes is stored into the array.
Possible values for this parameter. Unit Description PAPERSIZE_UNIT_MM Tenths of a millimeter PAPERSIZE_UNIT_INCH Inches PAPERSIZE_UNIT_POINT Points
Return Value
The number of papersizes.
See Also
Reference
APrinterForms
APrintersEx
APrinterTrays
APrintJobs
Used WinApi functions
DeviceCapabilities with parameter DC_PAPERS, DC_PAPERNAMES and DC_PAPERSIZE