in reply to printing an html file to a printer on windows

Update: Albannach informs me that the example code does render html to the printer via the default browser on his system. (Like for the OP, it does nothing on my system.)

What are you hoping for here? The above code is basically equivalent to print file.html from the command line. If it can be made to work--the article you cited is over a decade old, referring to VB4 and w95!--then all it will do is print the html as a text file to the current default printer. That is more easily achieved using system qq[cmd.exe /c print $file]; If you are hoping to print the rendered html, then you'll need to find a way to automate a webbrowser.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."