473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1454
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alec | last post by:
Hi, I am trying to print an HTML page from Internet Explorer and it always put the page title and page count at the top of the page. How can I disable printing page title and page count? Thanks.
1
by: C A Upsdell | last post by:
I have a site where I am setting a style dynamically, using the JS statement: obj.style.backgroundImage = 'url(img/bak_page.jpg)'; where 'obj' is either document.getElementById(id), or...
0
by: DotNetDummy | last post by:
Hi all, I am trying to set the printing setting e.g duplex mode etc. on a default printer when I.E object started printing a particular html doc. Here's the partial code, any help would be...
1
by: Rainbow | last post by:
Hi, I tried to change the print setting by PrintDialog dlg = new PrintDialog(); dlg.AllowSomePages = true; dlg.AllowSelection = true; dlg.Document = pd; dlg.PrinterSettings.MinimumPage = 1;...
9
by: Sean McKaharay | last post by:
Since no one can answer the following question: I have a issue. I need to create a command line application/or windows application that will take 2 parameters and will print to the default...
3
by: Ahmad Abu-Raddad | last post by:
Hey Guys, Does anyone knows of a way to print HTML source directly to the printer (Server Side)?. I tried the PrintDocument class and the e.Graphics.DrawString and e.Graphics.DrawImage() but...
8
by: Efi Merdler | last post by:
Hi, In my code I'm doing some xml transformation, at the end I receive a fully transformed html file. I'm setting the Value property of an hidden field control to have the content of this html...
2
by: rlntemp-gng | last post by:
Re: Access 2003 My client has a printer that can print single-sided or double-sided. The default settings for this printer in Windows is double-sided printing for the bulk of their work. ...
0
by: thirunavukarasukm | last post by:
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one...
0
by: gnewsgroup | last post by:
In my asp.net 2.0 web application. I create chart images on the fly by getting the data from the database. These chart images all have fixed width, but the height is dynamic depending on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.