Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page Size
Message
 
To
07/05/1998 13:06:11
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00097750
Message ID:
00097837
Views:
23
>I want to create a table that keeps track of printed pages. Page sizes for my large format printer can vary from 11" x 17 " to 36" x 80". Is there a way that VFP can extract the dimensions of the sheet printed from the WIN print manager? My goal is to track square footage printed, not just pages printed.

You can get this information from the GetPrinter() API function, by telling it to retrieve a PRINTER_INFO_2 structure. One one its members, is a DEVMODE structure that contains the paper size. This is a rather complex process and will involve a number of different API calls. If you're interested, I can fill you in on the steps that would be involved (declarations, etc.).
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform