Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining which printer the user printed to
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Determining which printer the user printed to
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01103082
Message ID:
01103082
Views:
44
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
Reply
Map
View

Click here to load this message in the networking platform