 |
| Enumerating forms supported by a specified printer |
User rating: 10/10 (1 votes) | |
|
|
 |
 |
| Before you begin: |
 |

Function EnumForms returns a collection of FORM_INFO_1 structures, each member containing name, width and height (in thousandths of millimeters) for a supported form.
Function DeviceCapabilities returns form names only.
See also:
Retrieving the number of print jobs queued for a printer |
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 10/10 (1 votes) | |
| 3292 bytes Created: 2003-02-24 15:06:29 Modified: 2012-03-28 23:48:49 Visits in 7 days: 50 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
The code sample enumerates formats for the default printer. Set the value of m.cPrinter to a valid printer name to run the enumeration for that printer.
The output cursor contains the width and the heights of each format in millimeters, inches and Document Units (1/300 inch). |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|