I have code that works fine on my XP machine. It loads an HTML document into the VB 6 WebBrowser control and then uses the following command to print the document without any print dialog box:
mfrmPrint.WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, PRINT_DONTBOTHERUSER_WAITFORCOMPLETION
I have also just implemented a .NET C# DLL that uses the axDHTMLEDLib. It also works fine on my XP computer.
It seems like a simple IE or machine configuration problem. When I open the Internet Explorer 6 browser, the following message is displayed.
Internet Explorer Enhanced Security Configuration is enabled
I have tried removing this (apparently some present IE security settings) and it didn't do the trick.
Thanks for any ideas.