Print Page | Close Window

Borgs Printable page

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7382
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Borgs Printable page
Posted By: Benji
Subject: Borgs Printable page
Date Posted: 19 November 2003 at 2:14am

Hi all, i'm working on a website for work and I would like to implement borgs "printable version" like he has on the forum posts pages.

Does anyone know how I would do this? Basically what I need is to be able to have a link on a page, and when you click it, an new window opens with just the text off the page etc. so that you can print it easily.

Thanks in advance

ps

I have no ASP knowledge at all really



-------------
Ben



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 November 2003 at 3:05am
The printable version is only use on the posts page and is basically a second copy of the page with the formatting changed and the graphics removed.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Benji
Date Posted: 19 November 2003 at 4:24am
Ah, so there's no fancy asp to remove the graphics for you then?

-------------
Ben


Posted By: Benji
Date Posted: 19 November 2003 at 5:46am

It's ok, found it somewhere on the 'net.

thanks anyway



-------------
Ben


Posted By: ljamal
Date Posted: 19 November 2003 at 6:52am
Another way to approach the printable page is to just define the printable elements with CSS, so that when the user prints the graphic filled page, the printer is sent a more basic page.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Benji
Date Posted: 19 November 2003 at 7:25am

Yes, I've read about that somewhere. The way I did it was to add some javascript in the head of the pages and wrap the text I want to print in a <div id="printReady"> tag.

The Javascript then looks for that and sends it to the printer when you click on the print page link.

Easy when you know how eh!!



-------------
Ben


Posted By: Gullanian
Date Posted: 19 November 2003 at 10:10am
You could also use the XML object and then strip the pages HTML


Posted By: Benji
Date Posted: 20 November 2003 at 1:25am
Dont know much about XML objects though. How do they work?

-------------
Ben


Posted By: Gullanian
Date Posted: 20 November 2003 at 6:07am
I dont know much about them either, look up on google, but I think it just grabs the HTML from a page



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net