All source code in ASP/ VbScript Ask a ASP/ VbScript Pro Discussion Forum Categories All jobs in ASP/ VbScript
Quick Search for:  in language:    
code,allows,make,print,friendly,version,exsis
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 281,486. lines
 Jobs: 101. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login

NEW! LEARNING CENTER
Special educational offers, white papers, webcasts, podcasts

  NEW! Download Rational Performance Tester V8 (download now)
  NEW! Download Rational Functional Tester V8 (download now)
  NEW! Download Rational Service Tester for SOA Quality V8 (download now)
  NEW! Teleconference: Quality In Action - Using Rational Quality Manager with Functional, Performance and Web Service Testing Products (download now)
  NEW! Introducing IBM Rational AppScan Developer Edition – easing security testing by non-security professionals (download now)

 

 


Latest postings for ASP/ VbScript.
Click here to see a screenshot of this code!Mess Officer Management System (Sistem Pengurusan Mess Pegawai)
By Mohd Fauzi on 11/23

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

Create Printer Friendly Version of Webpage

Print
Email
 
winzip icon
Submitted on: 9/19/2002 11:02:09 PM
By: PortJump Pete  
Level: Advanced
User Rating: By 16 Users
Compatibility:ASP (Active Server Pages), HTML, VbScript (browser/client side)

Users have accessed this code 39794 times.
 
author picture
(About the author)
 
     This code allows you to make a print friendly version of you exsisting webpage with minimal fuss by simply inserting a few tags, and passing the page to the print.asp script. I included a demo page so you can actually see where the tags were placed in the code and how it affects the output. There is a demo page and a readme included. Read the text file, upload the demo pages to your server and all questions shall be awnsered. And if there not, just email me. Don't forget to vote and feedback is always welcome!
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :Create Printer Friendly Version o
    '     f Webpage
    '**************************************
    Free To use, although any credit you would like to give is appreciated.
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 8 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
9/21/2002 10:37:51 AM

This is just what I have been looking for. Great script and easy to install.

Great Job PortJump Pete

Thank you
(If this comment was disrespectful, please report it.)

 
11/26/2002 2:12:01 AM

Here's my problem. I wanna let users print the results page from a submission form in asp. Something like: Name: <% Dim fName fName = Request.Form ("strFirst") Response.Write fName %> Address: <% Dim address1 address1 = Request.Form ("strAddress1") Response.Write address1 %> And so on. But when click on printer friendly version, only "Name:" "Address:" etc appears with no input. Is there a solution for that or your script won't work in that scenario? Thanks LC
(If this comment was disrespectful, please report it.)

 
11/27/2002 8:18:12 AM

Hey LC it may be because after you produce that inbfo and then click the "print Friendly" button it sends you to a another page. You need to make hidden form elements to capture the info so you can pass is it from form_results.asp to print.asp
(If this comment was disrespectful, please report it.)

 
8/13/2003 7:50:49 AM

Can you help I need to create a print friendly version of a result page that pull it's data from an SQL database and displays it in repeat rows down the page.

I've done all the steps explained from the download and it works fine except I'm not retaining the data. Obviously I need to capture the data querystring or such like but can't figure out how? Any suggestions.
(If this comment was disrespectful, please report it.)

 
8/14/2003 5:17:47 AM

Please ignor email of yesterday I think I've worked out how to pass the data. I've added these lines to the printlink.asp page:

myParent = request.querystring("myParent")
myChild = request.QueryString("myChild")
aURL=request.serverVariables("PATH_INFO")
pDom=request.serverva riables("HOST")

pPath=pDom&aUrl&"?myParent="&myParent & "&myChild=" &myChild

However now I get the following error:

Server.MapPath() error 'ASP 0173 : 80004005'

Invalid Path Character

/tna/REPORTS/print.asp, line 22

An invalid character was specified in the Path parameter for the MapPath method.

Line 22 is:

text = filesys.openTextfile(server.mappath(page)).readall

Is it because I need to open a dynamic file and this line calls a text one?

Any help would be greatly appreciated.

thanks in anticipation.

TA
(If this comment was disrespectful, please report it.)

 
3/23/2004 10:39:45 AM

Its great script and helped me lot. But one problem is when I view printer friendley version in IE it looks fine but in Netscape it show all vbscript code as well. Is there any solution???
Thanks
(If this comment was disrespectful, please report it.)

 
2/15/2005 4:59:35 AM

Script is very good
(If this comment was disrespectful, please report it.)

 
10/8/2005 2:14:46 AMMarshalls

hi.. i have a problem with my page.. this code only gets the text in the page but not the informations coming from the database.. can you help me with this one? thank you in advance..
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2008 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.