Formating HTML for printing


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Formating HTML for printing

  1. #1
    Jeff Pipes Guest

    Formating HTML for printing


    Question:

    I know some HTML but not a lot. Is there a way to embed vertical *and* horizontal
    page breaks into HTML so that when I print a huge page, it gets broken up
    into multiple pages at the points I determine?


    Background:
    We have a report (written in ActiveReports) that is exported to HTML. Before
    the export to HTML, it is comprised of multiple pages (sometimes hundreds).
    These pages extend both vertically and horizontally. When we try to print
    this HTML page, the printer breaks up the page where ever it feels like.
    This will not do. We want to specify exactly where the page is to be broken
    up.

    -Jeff

  2. #2
    Constance Petersen Guest

    Re: Formating HTML for printing

    Hi Jeff,

    "Jeff Pipes" <JeffP622@msn.com> wrote in message
    news:3b27b910$1@news.devx.com...
    > I know some HTML but not a lot. Is there a way to embed vertical *and*

    horizontal
    > page breaks into HTML so that when I print a huge page, it gets broken up
    > into multiple pages at the points I determine?


    You can use the following CSS2 code, which works in the later versions of
    IE, but I'm not sure it works with any version of Netscape:

    <DIV STYLE="page-break-before:always"></DIV>
    --
    Constance Petersen, DevX newsgroup section leader
    SoftMedia Artisans, Inc.
    http://www.smartisans.com
    Visual Basic.NET Internet Black Book
    ISBN: 1-58880-078-4



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center