Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working out the current default printer
Message
 
 
À
11/03/2008 08:44:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01300801
Message ID:
01300813
Vues:
15
Nick,

Thats an interesting approach.

Thx


>>Hi
>>
>>What's the easiest way to work out the name of the default printer?
>
>Hi Robin
>
>try
>
>
>DECLARE INTEGER GetDefaultPrinter IN winspool.drv;
> STRING @ pszBuffer,;
> INTEGER @ pcchBuffer
>
>nBufsize = 250
>cPrinter = REPLICATE(Chr(0), nBufsize)
>
>= GetDefaultPrinter(@cPrinter, @nBufsize)
>cPrinter = SUBSTR(cPrinter, 1, AT(Chr(0),cPrinter)-1)
>
>
>Nick
Rob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform