Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table breaking across pages on print

Status
Not open for further replies.

mgriffith

MIS
Jul 3, 2001
177
US
anyone know of a way to not let any region (whether it be a span/div/table/etc) be split across pages....i don't want to use page-break-before/page-break-after because i have multiple regions on a page, and each one is fairly small, but i don't want them to be broken across pages

any ideas?

thanks. mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
px mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
px..actually in mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Use % instead. There might be some serious re-do's involved, but then the browser will render the content by % instead of pixels or inches. If the user's screen resolution is 800x600 and your webpage is designed for 1024x768, then the user is going to wind up with a page to print that is bigger than the veiwable (printable) area. I bet some printers (high end printers at that) would present the option "shrink to fit," but most don't. What yo uhave to do is go by %, always. If you build with %, the page will always be proportional, if you use px or inches, the page will be definite (I think i spelled that wrong)...that means no matter what the user's resolution, the page will always be the same size (as if it were a sheet of paper behind the screen of the moniter...it will never change). By the way, did you use raw code or software?

--Hope it helps
 
it's all raw code....yeah that's actually not an option. the project isn't actually a true webpage....it's a web application, pulling all kinds of data from sql, transforming it to xml, parsing with xsl, using a com print object i wrote for using print templates, and some other cool stuff...all in a window that's a part of a stand alone app that nobody realy knows is internet explorer...with the addition of print templates in ie 5.5, i thought this would be the best way to go, rather than using crystal reports, so i'm trying it, but i'm really running into some loop holes, this post being one of them.

thanks for the advice...i'll keep searching, and post my final results. mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top