Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page Size
Message
 
À
07/05/1998 13:06:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00097750
Message ID:
00097837
Vues:
24
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform