This is kind of a mix of questions. You could easily pop-up 15-20 new windows with a report in each by mixing Perl with JavaScript but your users would--and probably should--hate you for it.

You can exercise a fair amount of control over how HTML is printed via CSS (eg, in your head something like <link rel="stylesheet" type="text/css" media="print" href="/css/printer.css" />). Google for "css print break" to dig deeper; but as anyone will tell you, HTML is still HTML and you will not get the same results on two different browsers or printers.

If you're serious about making it look right, investigate the PDF modules on the CPAN (I don't know them enough to recommend one). Then your clients can select page or report ranges to print, if you allow for it, and they will get exactly what you think you're sending them.


In reply to Re: controlling a printer(physical one) by Your Mother
in thread controlling a printer(physical one) by UncleRon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.