"more intelligence in the program" is exactly what you don't need.

The problem you are dealing with relates to the printing of HTML pages, generated by a perl script, using Mozilla/IE. The first thing you should do when trying to address any complex problem, is to split it into the smallest possible "sub problems" such that the action of splitting the problem up doesn't change the nature of the problem.

In your case, the first thing you should ask your self is: "Does the fact that my pages are generated with perl affect the problem?" -- I think you'll find that the answer is no. Mozilla/IE don't care where your HTML page comes from, they'll print it the same if it's served by a CGI, or if it's a file on your HardDrive. So take perl out of the equation: generate a copy of your page that you save to disk, and then tweak it untill you can get Mozilla/IE to print it hte way you want -- IGNORING PERL -- the perl doesn't matter, only the HTML. Once you have the file printing properly, then put the orriginal problem back together: update your perl to generate a page just like the flat html file you have.


In reply to Re: Re: Smart printing by hossman
in thread Smart printing by data67

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.