Using an Escape to Obtain and Change Paper Size for Printer (96796)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q96796 SUMMARY
By using the Windows API Escape() function, an application can change the
paper size on the printer and obtain a list of available paper metrics for
the default printer.
To get the list of available paper metrics, pass the ENUMPAPERMETRICS
printer escape constant to the Escape() function. The function will return
either an array containing the paper metrics or the number of paper metrics
available.
NOTE: Paper metrics differ from the physical paper sizes in that paper
metrics delineate the actual region that can be printed to, whereas paper
size is the physical size of the paper including the non-printable regions.
To change the paper size, pass the GETSETPAPERMETRICS printer escape
constant along with the paper metrics to the Escape() function.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | KB96796 |
---|
|