Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Default Printer
Message
From
26/01/2000 22:39:47
 
 
To
26/01/2000 16:52:58
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00323190
Message ID:
00323365
Views:
16
>I'm trying to use WSH to get the name of the current default printer, so I can temporarily set it, then reset it back.
>
>I'm doing this in NT 4.0. I'm refering to the WROX WSH book. They have an example of how to retrieve the name from the registry. However, the location doesn't exist.
>
>Does anyone know where I might find the printer name?
>


Do you know about

?SET("PRINTER", 2)

and SET PRINTER?

This does not change the Windows default printer, but it does direct VFP output towards the printer specified, which is maybe all you need.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform