Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2.6 Print to network printer???
Message
From
30/03/2002 23:33:02
 
 
To
28/03/2002 08:55:18
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00638090
Message ID:
00639239
Views:
19
That's an option, yes, but not one I normally use. I find that in many cases with legacy apps the user needs to print to a server queue *only* for the legacy app. When done there they want to go back to printing from Windows apps to a local printer on that same LPTx: port.

Legacy app startup batch files can be something like
NET USE LPTx: \\ServerName\QueueName
MyFPDOSApp.EXE
NET USE LPTx: /DEL
Also, setting up appropriate port mappings in the logon script is usually a good idea. Simply doing it once then relying on the /Persistent switch ends up causing support calls when Windows loses its memory.

>Also add on: /Persistent:Yes
>to the net use command.
>
>:o)
>Tracy
>
>>>Is it possible to print to a network printer in 2.6? The code currently allows the user to select which lpt to print to:
>>>set print to &pt (pt = 'lpt1' or 'lpt2')
>>>
>>>How would I use the code above to print to a network printer?
>>
>>If it's FPDOS you need to "map" a network printer (or queue) to a local port. On Microsoft networks you can issue the following from a DOS box:
NET USE LPTx: \\ServerName\QueueName
This command can be included in a logon script or as part of a batch file that starts up a FPDOS app.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform