The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com __________________________________________________________________
I have used the javascript below to create a button which will go through a document and print the contents of each frame separately. The OBJECT ID... turns off the print dialog box in IE so that users do not have to confirm the printing of each frame. Documents of all formats print correctly apart from pdf, which results in a blank page. Any help on how I could overcome this would be greatly appreciated. I use IE v5.5, and have tried acrobat v4, v5 and v6.
[<]script type="text/javascript">function printFrames(){if (confirm("[confirm alert]")) for (var i = 0; i < top.frames.length; i++) {top.frames[i].focus();printIt();}}function printIt(){var WebBrowser = '[<}OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">';document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(6, -1); WebBrowser1.outerHTML = "";}
_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband
To change your subscription: http://www.pdfzone.com/discussions/lists-pdf.html
