Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding name of active printer in VFP5.0
Message
De
30/08/1999 20:55:08
 
 
À
30/08/1999 12:41:01
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00259088
Message ID:
00259465
Vues:
18
>Petter,
>
>One trick is to create a dummy quick report in the following manner:
>
>create a dummy cursor:
>CREATE CURSOR DUMMYCURSOR(DUMMY C)
>
>then create a dummy quick report
>CREATE REPORT DUMMYREPORT FROM DBF("DUMMYCURSOR")
>
>open the report as a table:
>USE Dummyreport.frx
>
>And read the second line of the Expr field.
>cDefaultFoxPrinter=STRTRAN(MLINE(Expr,2),"DEVICE=","")
>
>It's kind of slow, but it seems to work.
>
>Walter,


How about reading it from the old WIN.INI??
VFP5a reads it from here so why not you.

Bernard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform