Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am creating report in html.
I want to PRINT and VIEW the report in html to A4 Size, Header and Footer ( both to be printed in each page).

My specifications are as follows
PAGE SIZE : A4
HEADER :.75 inch
FOOTER: 1.5 inch
Top Margin: 0.5 inch
Bottom Margin: 0.5 inch
Right Margin: 0.5 inch
Left Margin: 1 inch
Posted
Updated 5-May-13 20:13pm
v2
Comments
Maciej Los 6-May-13 2:07am    
And your question is...
Sergey Alexandrovich Kryukov 6-May-13 2:14am    
Why?
—SA

 
Share this answer
 
Comments
JYOTIRMOY SAMANTA 6-May-13 12:54pm    
Thanks for your help

Last two link is very good but problem is with the multipage content. I have shifted to thead tbody tfoot format
Thank you very much.
If you want to create reports for printing, you shoul use another format than a web-site based on HTML. HTML is not designed to create printable A4 papers. But you can create a page which is exactly A4. But when doing that you should use a reset css to remove margins and paddings from all elements, so that you have full control.

I would prefer to generate a PDF-document for printing reports, but it should work using html.

A4 paper = 210 x 297 millimeters (8.27 x 11.69 inches), so I guess your header should be 7.5 inches (not 75 inches)
 
Share this answer
 
Comments
JYOTIRMOY SAMANTA 6-May-13 12:46pm    
header is 0.75 inch it was typed as .75 inch.

To generate PDF I have to use either Some costly PDF Generator or I have to open source my code as in iTextSharp. Can you suggest me free dll to generate PDF from ASP.NET Application.
Thanks for your suggestion.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900