I'm trying to print a html page (from the local HD) to a local printer without requiring intervention from a user.

"It is there, its valid, print it, move on" type of approach. These forums have the following littered everywhere :-

ShellExecute Me.hwnd, "Print", "C:\Test.Doc", "", "C:\", vbHide

And works great on word docs. For html, it prints the raw html (via word or default html editor).

A text file can use printer.print or print #1, somestring

But I can't work out how to print a ridgy didge web page.

Someone hinted that the html must first be rendered by a browser, ie opened in browser or web control of some kind, and then printed from the browser.

If this is the case, can I send a "print" command from my app to a web broswer? I already know how to open the browser with my file already loaded. Using this method, I'd just need to send the print command (and subsequent close command).

Summary:
How do I automatically print a html document? The less the user sees the better.

GC