Click here to Skip to main content
15,799,257 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone.
I'm a new software developer.
I'm working in a new project that I create some HTML Code.
I need my page be printable. because it's a bill.
There are some deferences between my web page and my printed page in a paper.
How can I make a web page that exactly show in a printed paper?

Please help me. I've wasted time for a week.
Updated 11-May-10 10:11am

The easy answer is: generate a pdf, and have the clients download it. You may also generate an XPS, but you'll find that not many people have the viewer installed.
Generating pure printable HTML is very difficult, because of differences between browsers (and their print engine).
Almost all browsers will also add extraneous information, like the web site address, or the page number, etc...
Share this answer
Jamal Seyedi 11-May-10 9:13am    
but all of the customers of my web site are using the Internet Explorer and I will Adjust the Print Page Setup.
I prefer to use a HTMLs instead of PDF and etc. Please Help Me How Can I Have Pure Prinateble HTML.
Thanks so much
Jamal Seyedi 11-May-10 9:18am    
Or Please Guid me how can I make an XPS and what should the clients setup

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