Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to get default printer name
Message
 
 
To
24/03/2001 01:11:50
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00488339
Message ID:
00488374
Views:
7
>HI All!
>I'm using Windows Scripting Host to programatically set the default printer when printing a report. I'd like to be able to determine the windows printer name of the default printer before doing this, so that I can set the default printer back when i'm done, but there does'nt seem to be a WSH method to get this.
>I've seen objects written in VB to determine the default printer, But I don't want to install VB runtime on some 300 or so client workstations...
>Right now I'm using WSH to read the registry value that holds the value of the default printer name under win98, (insert overkill here) but that key does'nt exist under win2k and I can't seem to figure out what key holds that value.
>
>This seems like such a simple thing, I'm sure that someone here has a quick answer to this.
>
>Thanks all - Rick

Check set('printer',2)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform