Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 December 29th, 2004, 05:07 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Printing Report in Bottom Frame

Hello!

I have a asp page contian two frames. The top frame (named topOptions) has javascript links to print and close.

The frame at bottom (named botReports) shows some reports of customers.

Now what I want is when I click on javaScript "Print" link, it prints everything in bottom frame.


Any idea..
Any help...
Will be really appriciated...


Thank you
Zeeshan Ahmed


 
Old December 29th, 2004, 09:36 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Check out this :: http://msdn.microsoft.com/library/de...dhtmlprint.asp

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old December 29th, 2004, 08:31 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

itHighway - Please don’t post the same problem twice

In general clicking print should print the frame that has focus 'and only that frame' You are questioning an existing gray area to do with Frames in general. Frames do not print well and any solution is very browser/version specific. In addition there are frame related settings in your print preferences - another hurdle to jump as a consequence of using frames.

Due to thier 'many diss-advantages' I dont and have not used frames for some time now, however you could:

1..Tell the user to right click/print within the frame they want to print.
or
2..Place a function onClick of the print button prompting a mssge/confirm indicating what frame to print, give focus to a hidden form field in this frame then use parent.frameName.print(); to print. An example of this may be found at http://developer.irt.org/script/73.htm


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
parsing form data from frame to other frame audio-catalyst Classic ASP Basics 5 January 3rd, 2006 02:57 PM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
Printing Window in Frame itHighway Classic ASP Basics 1 December 31st, 2004 01:18 AM
Error While printing report (Crystal report) vikaspaweb Pro VB 6 0 March 8th, 2004 09:53 AM
Frame Switchboard and Listbox Report Fehrer Access VBA 14 September 10th, 2003 10:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.