>>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