View Full Version : Iframe not working in IE7
05-26-2009, 04:05 PM
Below mentioned code prints properly in Mozila but not in IE7 any help on this would be greatful.
for (var i=0; i<window.frames.length; i++)
parent.objAdobePrint.focus();-- Prints in Mozilla & not in IE
parent.objAdobePrint.print();-- Prints in Mozilla & not in IE
<iframe src="1.pdf" id="objAdobePrint" name="objAdobePrint" height="250" width="100%" frameborder=0></iframe><br>
05-26-2009, 04:28 PM
This works in IE and FF just fine:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
var iframe_window = window.frames["my_iframe"];
<iframe name="my_iframe" id="my_iframe" src="example.html"></iframe>
<input type="button" value="print iframe" onclick="printIframe()" />
05-26-2009, 05:05 PM
Thanks for your quick replay right now printer is not available i will check code by tomorrow & get back to you.Before that inside the iframe i am having the PDF which is having merely 50 pages whether all the pages will be printed by using above attached code?. Kindly let me know.
05-27-2009, 10:30 AM
Still the same problem: i am having a pdf with 2 pages in FF both pages are printing (By using above suggested code)but in IE7 only single blank page is printing any suggestion would be greatful.
05-27-2009, 10:46 AM
Waiting for your suggestions in so many forums above mentioned problem is not answered but i am expecting the answer from this forum & its urgent too.
05-27-2009, 01:42 PM
Very simple issue it takes too long to fix expecting experts help to solve anyone is there to help me or i want to know is it possible to print multiple page pdf in IE7(inside iframe) any help would be appreciated
05-27-2009, 03:12 PM
(without testing) i would say that if time is an issue you could simply do what most sites do and give a link to the pdf so the user can choose to view/print it as they wish. then you don't have browser quirks with the printing because it'll be an adobe plugin that does all the work.
07-09-2010, 08:22 AM
could you provide a solution if the iframe content is not a pdf but another html(.aspx) page which is longer than 1 page.
Appreciate any help posted
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.