Setting html page for printing

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

    Setting html page for printing

    Dear all,

    Is there any ways to determine the size of table width and table
    height for paging?
    I want to create web report (multi pages). So when the rows has
    reached certain number it automatic move to the next page and print
    the next rows within the new table (table with header and footer)

    -----------------------------------------------------------------.
    No Name Description
    -----------------------------------------------------------------
    1 Alex Security
    2 Fenny Accounting
    3 Jonathan Accounting
    4 Marry Legal
    5 Anton GA
    ----------------------------------------------------------------
    Company Title Page 1
    ----------------------------------------------------------------

    -----------------------------------------------------------------.
    No Name Description
    -----------------------------------------------------------------
    6 Widya Finance
    7 Bertha Promotion
    8 Andri Fit Out
    9 Nanda Customer Care
    10 Herman description of row 10
    ----------------------------------------------------------------
    Company Title Page 2
    ----------------------------------------------------------------

    -----------------------------------------------------------------.
    No Name Description
    -----------------------------------------------------------------
    part of description
    row no 10
    11 Elan Food District
    12 Sinjiro GA
    13 Dravy Casual Leasing
    14 Ryo Fit Out
    ----------------------------------------------------------------
    Company Title Page 3
    ----------------------------------------------------------------

    How do i make a web report look like the tables above.

    Thank you for any kind of responses.

    Regards.
    Vio.
  • =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?=

    #2
    Re: Setting html page for printing

    Vio escribió:
    Is there any ways to determine the size of table width and table
    height for paging?
    Actually not, unless you generate a PDF file.

    You can specify sizes in your style sheet using millimetres and divide
    the table manually, preceding each subtable with a form feed:

    table{
    page-break-before: always;
    }

    If you are conservative enough it could suit your needs. But the PDF
    option is really the best one. See http://fpdf.org/


    --
    -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    -- Mi sitio sobre programación web: http://bits.demogracia.com
    -- Mi web de humor al baño María: http://www.demogracia.com
    --

    Comment

    • Rik Wasmus

      #3
      Re: Setting html page for printing

      On Fri, 16 May 2008 06:02:24 +0200, Vio <vio.chou@gmail .comwrote:
      Is there any ways to determine the size of table width and table
      height for paging?
      Not server side, there is no rendering UA there. And even if there was, it
      would be just how it renders at that computer.
      I want to create web report (multi pages). So when the rows has
      reached certain number it automatic move to the next page and print
      the next rows within the new table (table with header and footer)
      You can do someting with css (UA support is a lit bit flaky, but give it a
      try), and you really should leave it up to the client UA, ask in
      comp.infosystem s.www.authoring.stylesheets, of search the web for "css
      print table header". For a footer, see
      http://www.alistapart.com/articles/boom for instance.
      --
      Rik Wasmus
      ....spamrun finished

      Comment

      • Vio

        #4
        Re: Setting html page for printing

        Thank you Mr.Alvaro and Mr.Rick Wasmus

        It works now.

        Regards,
        Vio.

        Comment

        Working...