Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Windows Printer
Message
From
21/07/2000 12:15:44
 
 
To
21/07/2000 10:04:33
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00395364
Message ID:
00395501
Views:
15
>Privet Yuri
>I explain again. SET PRINTER TO NAME not works for printing from ActiveX control print method. If I want to redirect DISPLAY MEMORY TO PRINTER then not problems.
>
>>I believe, it should be
>>
>>SET PRINTER TO NAME "PRINTER NAME"
>>
>>*---------------- your message below
>>>In my program me need printing from activeX.
>>ActiveX control always using default windows printer. But need to move
>>print job to printer fax port.
>>SET PRINTER TO [NAME] not works for redirect printer job between printers. Maybe anybody know, how set printer as default and return back.


If you have the option of installing Windows Scripting Host version 2.0 or later, the Wscript.Network COM object can alter the default printer setting programmatically, and it can be instanced from VFP. Unlike the assignment of printer output using SET PRINTER, it's visiable to the full Windows environment.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform