Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select printer when printing from Browser control
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Select printer when printing from Browser control
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01571742
Message ID:
01571742
Views:
46
How do I Select printer when printing from Browser control. I am using this code to print from the browser:
* Code from Microsoft:  http://support.microsoft.com/kb/265126
 #DEFINE OLECMDID_PRINT 6
 #DEFINE OLECMDEXECOPT_PROMPTUSER 1
 #DEFINE OLECMDEXECOPT_DONTPROMPTUSER 2
 ThisForm.oBrowser.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, 0, 0)
However it only prints to the default printer. The VFP SET PRINTER command has no effect.

As I see it I have two options. Find how to change the printer for this application or find out how to put the entire contents of the ole browser control in a report. At this point I will take either option. The contents of the browser are in a local HTML file so I can easily put it in a report if needed. I'm just not sure how to do that.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Next
Reply
Map
View

Click here to load this message in the networking platform