Print View (From a db template)
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 4412
Total Votes: 39 votes
Category: ASP/Content Management
Submitted on: 2008-03-05 04:56:05
Submitted By: Devesh Khanna
Description:Web pages usually print pretty lousy. Typically, background colors are not displayed (unless you change the browser settings) and depending on site the width may be set much wider than the printer can handle on the horizontal for an 8 ½ page.
Providing a printer friendly format adds immeasurable value for your users. There are two basic ways that a print view page can be generated. The first way is with a separate page that just has the “guts” of the page display without the banners and other items (this is how the Print View Icon on CodeAve.com works).
The second is to strategically place a couple of simple tautologies that will display banners and other items in the typical or “default” view and allows a link back to the same page with a querystring value that will be used to suppress everything but the db output. More detail...