Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What printer did the user print to??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
What printer did the user print to??
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01101436
Message ID:
01101436
Vues:
50
Bllaaahhh!! I may be making this too difficult due to faulty memory or whatever (I actually don't have much call to do this), but how the heck do you find out where the user printed a report. In the IDE I was able to use SET("PRINTER", 3).
Open a code window
? SET("PRINTER", 3)  && Shows my default printer
Choose File - Print
Select another printer
Click Print
? SET("PRINTER", 3)  && Shows the printer I printed to
This seems odd since SET("PRINTER", 3) returns the VFP "default" printer and just printing to a different printer wouldn't necessarily change the default printer (as least to my way of thinking). But it was doing what I wanted - giving me the printer the user printed to - so I was off to the races. Or so I thought. What worked great in the IDE is not working in my program. Despite the fact that I print to a printer other than my default, SET("PRINTER", 3) just returns the default printer each time, unlike it did in the IDE. Any help would be appreciated.

Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Répondre
Fil
Voir

Click here to load this message in the networking platform