Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer dialog box very slow
Message
From
18/02/2010 15:36:20
 
 
To
18/02/2010 14:59:11
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01449793
Message ID:
01449803
Views:
38
Store the different printer names in a local table, and give the users the option to update the table whenever needed.

>Here is my situation. I have application running on a window's network which has many printers... some shared and some local.
>When I print a report, I have to make the desired printer as windows default printer... print the report and then set the setting back to its original. I use the following code to do that:
>
>
>
>    lcPrinter = "Laser"
>    oWSHNet = CREATEOBJECT('Wscript.Network')
>    oWSHNet.SetDefaultPrinter(lcPrinter)
>    RELEASE oWSHNet
>
>
>
>Why on some work stations the Printer Dialog box takes a long time to come up... sometimes upto 1 minutes. On some network the same code works fine and no delay at all.... Can someone please help me to resolve this issue.
>
>Thank you in advance...
>
>Raz
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform