Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PRINTER TO
Message
 
To
16/01/1997 13:47:57
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00017567
Message ID:
00017577
Views:
76
> Yes this does work, but I need to save the printer the user has choosen,
> and use it next time they run the app, without having to do a sys(1037)
> again. I am able to get the printer nam and save it. I just can't set the
> printer back to it later without user intervention (via sys(1037) for
> example)

In VFP5 they solved it with set('printer',2). In VFP3 I used to do the
following:

cPrinter=getprinter()
keyboard char(13)

Not the most elegant solution East of the Mississipi, but if you can put
up with the dialog flashing up for a small second it works. BTW you
need it only once at startup.

Lisa Slater Nichols has a more sophisticated approach: she creates a
report and goes into the frx and picks up the printer from the ad hoc
Memo (If you're interested, Tom put this as the Indian Trick in the VFUG
tips and tricks section).

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform