Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Printer information
Message
 
 
À
26/04/2007 08:11:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01220056
Message ID:
01220062
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>I need to know what are the dimensions of the paper for the selected printer.
>This can be knowing the paper name, like "letter", "A4", etc or just the dimensions.
>
>VFP brings the PRTINFO() function, but sometimes it returns -1, when it cannot obtain these data from the printer.
>
>
3 PRT_PAPERLENGTH - Paper length in .1 millimeter increments
>4 PRT_PAPERWIDTH - Paper width in .1 millimeter increments
>
>Is it possible to obtain in another way ?
>
>
>There's an excellent FAQ from Sergey Berezniker, "Enumerating printer forms under Windows NT/2K/XP" FAQ# 22445, but it returns all available papers, and not the selected paper.
>
>Is there a way to obtain the selected paper for the printer ?

Hi Cesar,

AFIAK, the PRTINFO(2) returns Paper Size # that directly corresponds to the Priner Form #.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform