Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2003, 09:36 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amatheso
Default Print Friendly Page

Hi,

I am generating a dynamic page using asp, and would like to know of an easy way to format the page for printing. I can sucsessfully format for width, but if the report spans multi pages it doesn't format the page to make it fit neatly on each page.

Is there a html page break function, or will i have to code it in asp to work out the page breaks?

I appreciate any help!!!


Cheers,

Matho
 
Old June 14th, 2003, 02:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Nope, but there is one in CSS. :)
http://www.w3.org/TR/REC-CSS2/page.html#page-breaks

I don't remember how much in these articles that addresses page breaks but I think you'll find at least something useful in them.

A List Apart: CSS: Going to Print
http://www.alistapart.com/stories/goingtoprint/
Print Different
http://www.meyerweb.com/eric/article...ev/200001.html
Kissing Print Versions of Pages Goodbye : evolt.org
http://evolt.org/article/Kissing_Pri...225/index.html
NUblog: A better printable page
http://www.contenu.nu/article.htm?id=1217

(o<
//\ =^..^=
 
Old June 14th, 2003, 11:17 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to amatheso
Default

Thanks for that meow.

Those links will be very useful! In regards to my problem, i have created a solution that utilises variables in ASP. I did a rowcount of the dynamic table, and if the variable is >35 then put a spacer row in and then print the table heaer again. This works quite well.

I know that not everyone has acess to server side programming, but this worked for me :-). I will also look into style sheets as well!

cheers

matho.





Similar Threads
Thread Thread Starter Forum Replies Last Post
making web page titles SEO friendly crmpicco HTML Code Clinic 1 December 10th, 2007 08:03 PM
Printer Friendly Web Page [email protected] ASP.NET 1.0 and 1.1 Basics 0 May 17th, 2006 01:08 AM
How to Create Printer Friendly Page? qadeerahmed Classic ASP Basics 1 August 17th, 2005 05:56 PM
print the hidden page without the print dialog box kayzem Classic ASP Basics 0 April 21st, 2005 11:31 PM
Printer friendly reports from JSP page. ngsaran Crystal Reports 0 October 19th, 2003 05:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.