Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing printer in browser control
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Miscellaneous
Thread ID:
01378577
Message ID:
01378605
Views:
20
>>I try to print from the browser control on a form using ExecWb(6,2,0,0) but the printout doesn't respect the printer I set in the line before with SET PRINTER TO NAME.
>
>>Is there any way to make the browser control pick up the new printer setting?
>
>The browser control will not respect VFP printer settings. The article
>How to change print settings for Internet Explorer and the WebBrowser control programmatically in Internet Explorer seems to suggest that printer can be changed by modifying the registry.
>Another way is to change Windows default printer, as shown in Changing Windows default printer, before printing and restore after but it'll affect all applications on PC.

After changing the default Windows printer, the new default setting is not respected by new IE browser objects (created in VFP code after the code for changing the default printer). They still have the old default printer selected!

Is there a way to force the new setting to be respected?
Vidar Johannessen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform