470,874 Members | 1,533 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

Setting html page for printing

Vio
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.
Jun 2 '08 #1
3 1357
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
--
Jun 2 '08 #2
On Fri, 16 May 2008 06:02:24 +0200, Vio <vi******@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.infosystems.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
Jun 2 '08 #3
Vio
Thank you Mr.Alvaro and Mr.Rick Wasmus

It works now.

Regards,
Vio.
Jun 2 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Alec | last post: by
1 post views Thread by C A Upsdell | last post: by
1 post views Thread by Rainbow | last post: by
9 posts views Thread by Sean McKaharay | last post: by
3 posts views Thread by Ahmad Abu-Raddad | last post: by
8 posts views Thread by Efi Merdler | last post: by
2 posts views Thread by rlntemp-gng | last post: by
reply views Thread by gnewsgroup | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.