I've tried using :

result = ShellExecute(Me.hwnd, "PRINT", "REP.HTM", "", "", -1)

but that involves the user having to click `ok` , which I don't want.

I've also tried the WebBrowser control, but that doesn't let you print if you have a more recent version of the browser than v4 or so. (Needs to work on v5 onwards browser).

There must be a simple way of printing .html files?!