...that will print a html file to several printers installed on that server....
The solution will depend upon what you mean by that?
If you mean print the entire contents of a file that contains html, tags and all, as ascii--just as you would see it on the screen if you did type file.html, then the easiest way is to use open directly to the printers device id (lpt1: or com2: etc) or it's full share name (\\server\\printername). and just print to the filehandle in the normal way.
But if you want the html, minus the tags, and formatted as you would see it in a browsers, then you will need to use a browser's print facility to take care of the formatting. You can (with a lot of reading) do this using Win32::OLE or possibly using Win32::GuiTest. Either is not simple, but if you use super search you may find some guidance.
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|