window.print();

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yaniv madar

    window.print();



    Hi
    I need to print a long HTML page and the papar cut at the middle of the
    page and some of the data lost :-(.

    I print with JavaScript command "window.print() ".
    Is there any option to control or to split the page that will fit for
    A4 page
    size and not cut it.


    10X,
    yaniv madar.
    yanivardit@hotm ail.com; yanivma@shaam.g ov.il


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Evertjan.

    #2
    Re: window.print();

    yaniv madar wrote on 15 feb 2004 in comp.lang.javas cript:
    [color=blue]
    > I need to print a long HTML page and the papar cut at the middle of the
    > page and some of the data lost :-(.
    >
    > I print with JavaScript command "window.print() ".
    > Is there any option to control or to split the page that will fit for
    > A4 page
    > size and not cut it.
    >[/color]

    <STYLE MEDIA="print">
    p { page-break-before: always }
    </STYLE>


    <http://www.blooberry.c om/indexdot/css/properties/print/pbbefore.htm>

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Michael Winter

      #3
      Re: window.print();

      On 15 Feb 2004 20:08:55 GMT, yaniv madar <yanivardit@hot mail.com> wrote:
      [color=blue]
      > I need to print a long HTML page and the papar cut at the middle of the
      > page and some of the data lost :-(.
      >
      > I print with JavaScript command "window.print() ".
      > Is there any option to control or to split the page that will fit for
      > A4 page size and not cut it.[/color]

      Odd. I'm sure that I've seen this question before... Oh yes, you already
      asked it, and I gave you an answer.

      In future, if the solution offered doesn't appear to be sufficient, post
      a follow-up, not a new topic. However, as Evertjan has given you an
      answer along the lines of my own, I think you'll find my advice was
      correct.

      Mike

      --
      Michael Winter
      M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      Working...