Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printer Escape Code for Eject

    Hi,

    Is there any way that we can include a printer escape code for eject to the html page so that when we issue a javascript:window.print(), it will eject on that portion and start a new page.

    If it is possible, how?

    Can you also give any alternative method on how to do this?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    So you basically want a page break? In the element that you want the page break to be, add this to its open tag.
    Code:
    style="page-break-after:always;"
    <div style="page-break-after:always;">Stuff after this div should print on a new page.</div>

  • #3
    New to the CF scene
    Join Date
    May 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. It really helps.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •