Web Printing
Moderator: General Moderators
Web Printing
I want to print out tickets one per page, I was just wondering what is the height in pixels that prints out on a printer, I tried making my td cell height=792 but that isent working.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Each printer/browser/OS whatever can be different. The bottom line is never rely on width/height to determine pages.
There is however a CSS attribute
e.g.
Note: to view the output.. go to print preview
There is however a CSS attribute
Code: Select all
page-break-after:always;
page-break-before:always;Code: Select all
Page 1
<br style="page-break-before:always;">
Page 2
<br style="page-break-after:always;">
Page 3Thanks
Well I tested this code in IE and it works great, thanks!
As far as other browsers go, I am not concerned about that because this site is for company useonly, and I know that all of their computers are running Windows XP with the latest IE.
Thanks again, a handy little bit of code!
As far as other browsers go, I am not concerned about that because this site is for company useonly, and I know that all of their computers are running Windows XP with the latest IE.
Thanks again, a handy little bit of code!
Last edited by icesolid on Sun Feb 19, 2006 5:00 pm, edited 1 time in total.
I Like It!
I don't know about that...I found that code very easy to use and works in newer browsers such as Internet Explorer and Netscape 7.0 and up.
I'm not worried about Mozilla browsers (I haven’t tested) because I am SURE that none of the users of this site are going to be using that browser. This site will be running on desktops at the location and laptops offsite all running the latest Internet Explorer.
On top of that, its time for all of those old school computer junkies to update their browsers, get with the program yawl! I think that newer browsers are plenty safe for the average computer user and offer the ability to run the latest enhancements of the web.
I'm not worried about Mozilla browsers (I haven’t tested) because I am SURE that none of the users of this site are going to be using that browser. This site will be running on desktops at the location and laptops offsite all running the latest Internet Explorer.
On top of that, its time for all of those old school computer junkies to update their browsers, get with the program yawl! I think that newer browsers are plenty safe for the average computer user and offer the ability to run the latest enhancements of the web.