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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing an acrobat file in an iframe

Status
Not open for further replies.

CubanTime

IS-IT--Management
Jul 23, 2003
2
GB
I have a number of documents which have up to 30 iframes in them. I use the following function to print all of them via one button:

<script type=&quot;text/javascript&quot;>function printFrames(){if (confirm(&quot;[Alert]&quot;)) for (var i = 0; i < top.frames.length; i++) {top.frames.focus();printIt();}}function printIt(){var WebBrowser = '<OBJECT ID=&quot;WebBrowser1&quot; WIDTH=0 HEIGHT=0 CLASSID=&quot;CLSID:8856F961-340A-11D0-A96B-00C04FD705A2&quot;></OBJECT>';document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(6, -1); WebBrowser1.outerHTML = &quot;&quot;;}</script>

The OBJECT ID switches off the print dialog box in IE, to save the user from having to OK each document.

My problem is that Adobe Acrobat documents do not print. Even if I click on a frame with an acrobat doc in it to focus on it - and then use the browser print button - I get nothing.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top