cipiWeb
asked on
Printer Friendly Page
I want to generate a page that is printer friendly. What should I do?
Ideally I would like to control the number of pages with 'height' and the flow with 'width'.
Simply put i want to print out a data sheet for a product. Some data appears on the first page, some on the second. When the Next product comes up I want it to start on a new page instead of continuing at the end of the previous page.
at the very least I want to control the width so nothing gets cropped off the paper when it prints.
Ideally I would like to control the number of pages with 'height' and the flow with 'width'.
Simply put i want to print out a data sheet for a product. Some data appears on the first page, some on the second. When the Next product comes up I want it to start on a new page instead of continuing at the end of the previous page.
at the very least I want to control the width so nothing gets cropped off the paper when it prints.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So far as I know the page-break-after is supported by all modern browsers.
By detailed I mean that if you need complete control over the output. Bascially this suggestion involves using a 3rd party component to convert HTML into a PDF file. When you create the PDF file you can control page size, margins, headers, footers, orientation, and so forth. You have pretty much complete control of the output. The downside is that you must have a component to do this. Depending on who is hosting your site, this may not be an option. If you are hosting the site yourself, then it is not a problem. I use a product called abcPDF for this. For more information you may visit their site at http://www.websupergoo.com/abcpdf-1.htm
Neal.
By detailed I mean that if you need complete control over the output. Bascially this suggestion involves using a 3rd party component to convert HTML into a PDF file. When you create the PDF file you can control page size, margins, headers, footers, orientation, and so forth. You have pretty much complete control of the output. The downside is that you must have a component to do this. Depending on who is hosting your site, this may not be an option. If you are hosting the site yourself, then it is not a problem. I use a product called abcPDF for this. For more information you may visit their site at http://www.websupergoo.com/abcpdf-1.htm
Neal.
You can also look into using @media print do define a seperate css for printing.
This is handy when there are things on the page (such as navigation menus) that you don't want to print.
This is handy when there are things on the page (such as navigation menus) that you don't want to print.
ASKER
1) I was planning on using a table or div for the set width ^.^
2) How well do browsers support that?
3) I am not sure what you mean by detailed, could you elaborate? what options are you refering to?