Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 September 22nd, 2004, 10:49 AM
Authorized User
 
Join Date: Jun 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE: Printer Friendly

I created a report in asp and would like to find out what is the code to print out the report printer friendly. Any help I would greatly appreciate.

Thank you

slypunk
__________________
slypunk
 
Old September 22nd, 2004, 12:33 PM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
    I think the following code will be useful to u.
<input type=button name="print" onclick="window.print()">

thanks
Suresh

 
Old September 22nd, 2004, 12:48 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi slypunk,

Check out this FAQ: http://imar.spaanjaars.com/QuickDocID.aspx?QUICKDOC=240

It describes how to hide certain page elements when the page is printed.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Rub 'Til It Bleeds by P.J. Harvey (Track 4 from the album: Rid Of Me) What's This?
 
Old September 22nd, 2004, 01:19 PM
Authorized User
 
Join Date: Jun 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sureshbabu
 Hi,
    I think the following code will be useful to u.
<input type=button name="print" onclick="window.print()">

thanks
Suresh

COOL it worked! Thanks for your help!!

slypunk





Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Printer Friendly / Crystal reports leo_vinay ASP.NET 1.0 and 1.1 Basics 2 December 16th, 2004 09:30 AM
Printer.Printer Problem!! Pls Help Me Chamin Access VBA 0 December 10th, 2004 07:08 AM
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.