Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
How to print a frame that has scroll bars
Old 10-17-2005, 08:44 AM How to print a frame that has scroll bars
tcb
Experienced Talker

Posts: 34
Trades: 0
Hello,

I have a frame with horizontal scroll bars and I want to print the whole frame when I click the Print button of my form. I have the following lines on the code:

onClick="parent.bottomFrame.focus();print()"

but it only prints a little part of that frame. How can I print the whole frame?

Thanks,
tcb.
tcb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-17-2005, 11:08 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
try:
onClick="parent.bottomFrame.print()"
and make sure the content isn't too wide to be printed on one page.

And why is this under ASP and Access... it should be under Javascript.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-18-2005, 08:29 AM
tcb
Experienced Talker

Posts: 34
Trades: 0
Thanks, but that doesn't work. I am gonna try the other forum..

tcb.
tcb is offline
Reply With Quote
View Public Profile
 
Old 10-18-2005, 10:03 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
I tested it on IE6, Firefox and Safari and that code worked for me:
http://www.siriusad.com/test/frame.html

What isn't working? Do you get an error? Can we see the code/link to the page?
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-18-2005, 10:28 AM
tcb
Experienced Talker

Posts: 34
Trades: 0
The "Print" button is in one frame(topFrame) and I want to print the other frame (bottomFrame). That's why it has to be something like I have done before:

onClick="parent.bottomFrame.focus();print()"

The topFrame contains a form with many boxes and some buttons (Search, Print and Reset). The input for the "Print" button is:

<input type="button" name="Print" value="Print" onClick="parent.bottomFrame.focus();print()">

As you said, I think the frame (bottomFrame) is too big to be printed in one page. But I would like to know how do I do to print the whole frame. It doesn't matter if it's gonna be in one or more pages.

Thanks,
tcb.
tcb is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to print a frame that has scroll bars
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14468 seconds with 12 queries