Get the DMPAPER parameter for custom paper size using PC_PRINTER_OPEN routine
Created On: 08 October 2012
How do I get the DMPAPER parameter for custom paper size - in this case it is 9x12?
With reference to the PC_PRINTER_DEFAULT_PROPERTIES (which sets one or more of the properties of the default printer for all PC_PRINTER_ routines), please set the P-PAPERSIZE flag to 0 - which Microsoft define as the custom setting. Once this has been done, you can add your own values to P-PAPERLENGTH and P-PAPERWIDTH, to the nearest millimeter, to define your own custom page size.
Old KB# 36413