Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.print to print the whole contents of the specified frame

Status
Not open for further replies.

zwrley

Programmer
Aug 7, 2001
14
PH
I have a page in a frameset (say, topFrame, mainFrame and bottomFrame). I am using window.print to print mainFrame but the problem is it's not printing the whole contents of the mainFrame. It only prints what is visible on the layout.
 
thats because the browser treats each frame as a window. i dont think there is a way to get over this using javascript.
 
In fact there is no way at all, you are experincing the dreaded overflow clipping of text I assume for ex:

------------(begining of frame or textarea dimensions)
j-print
j-print
j-print
j-print
j-print
------------(end of frame or textarea dimensions)
j <extened text- no print
j <extened text- no print
j <extened text- no print

=======================================
No matter what you do it just wont print and that is a lame feature of IE and Netscape I assume, heck maybe all of them act the same. Really the only way to avoid this is to add a save button to the page, save the text, and print from that page.

Hope that helps

Code One
 
are u using plain html or asp, php etc?
if u r using asp etc.. i would advice u to give a Printable link.

i can give further details only after u reply. Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top