Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExecWB and specifying a printer
Message
 
 
To
15/10/2004 12:35:29
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00951574
Message ID:
00951767
Views:
9
>Thank you for the quick response!
>
>Ironically I was already looking at that solution. I did another search on the thread and found it in another post. I think that should work, but the only concern I have is it relies on WScripting. I was hoping there was another way to call ExecWB to specify the printer, but I have since ruled that possibility out.

You can use SetDefaultPrinter Win API but it's not supported under Windows 95/98/Me.
DECLARE Integer SetDefaultPrinter IN WINSPOOL.DRV String
...
IF SetDefaultPrinter(lcPrinter) = 0
  * Cannot change default Windows Printer
  RETURN .F.
ENDIF	
...
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform