Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Printer To LPT2 & Net Use
Message
From
07/06/2005 14:00:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Set Printer To LPT2 & Net Use
Miscellaneous
Thread ID:
01021031
Message ID:
01021031
Views:
72
VFP 8.0 SP1
We want to switch printers after an invoice print (Dot Matrix) so we can print some labels on a Zebra Label Printer. It all works well in WinXp & 2000 but not Win98 and unfortunately our customers won't upgrade for a while yet. The following code works in XP & 2000.

Set Printer To Name (Our_Label_PrinterName_Parameter)

So instead we are trying the DOS "Net Use" command before we print to capture the port and re-direct it to the Zebra Network Printer.

Set Printer To LPT3 (which we have already captured) always prints on the windows default printer and does not go out to the Captured Printer. The strange thing about this is issuing the Set Printer To LPT3 in Fox for DOS works fine, any suggestions.
My Regards
John Hussey
Next
Reply
Map
View

Click here to load this message in the networking platform