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.
In reply to Re: printing an html file to a printer on windows
by BrowserUk
in thread printing an html file to a printer on windows
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |