Print Page | Close Window

Printing ASP 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=8965
Printed Date: 01 April 2026 at 1:14am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Printing ASP page
Posted By: ngaisteve1
Subject: Printing ASP page
Date Posted: 16 January 2004 at 3:08am
I just want to ask if there any resources (tutorial, tips, sample, url) about printing those asp page. I got to know that this is about using CSS. Is this the best and easiest way? If not, what other better ways?



Replies:
Posted By: pmormr
Date Posted: 18 January 2004 at 3:57pm
do you want to print the output or the source?

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Gullanian
Date Posted: 18 January 2004 at 4:23pm
If you wan't to print the source you would need some kind of script to grab the content of the file, and replace the < with &lt;, and the > with the &gt;


Posted By: fernan82
Date Posted: 19 January 2004 at 2:32am
You don't have to replace the <> tags, if you want to print the source to the browser just enclose it in  <xmp></xmp> tags. If you got a file with an asp extension that you want to show the source you can use the stream object or the filesystemobject to grab the source file.

If you want to print out the page you can use javascript:

window.print()



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Gullanian
Date Posted: 19 January 2004 at 4:37am
I think XMP tag might have some browser compatability problems, might need to look it up.



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