in reply to controlling a printer(physical one)

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.

  • Comment on Re: controlling a printer(physical one)

Replies are listed 'Best First'.
Re^2: controlling a printer(physical one)
by UncleRon (Novice) on Jul 31, 2005 at 00:28 UTC
    Thanks, for your thoughts and time. That's where I ended up going (htmlgoodies.com) and got an answer that works just fine.

    You're right, of course, about HTML, but this is a case where it's not so critical that I need PDF accuracy. I'm going to investigate that too.

    UR