...

View Full Version : Print iframes content pdf file using javascript in safari browser



bganesan
05-13-2009, 11:27 AM
<HTML>
<script Language="javascript">

function printfile()
{
window.frames['objAdobePrint'].focus();
window.frames['objAdobePrint'].print();
}

</script>
<BODY>

<iframe src="Test.pdf" id="objAdobePrint" name="objAdobePrint" height="250" width="100%" frameborder=0></iframe><br>

<input type="button" value="Print" onclick="javascript: printfile();">

</BODY>
</HTML>

the above code working in Firefox browser, but its not working in safari browser.

if i try to print this pdf file in safari browser i am getting empty page print out.

if i open any pdf file in firefox browser, i can print that pdf file from toolbar File->Print option,
but its not working for safari browser.

any one can help me for above issue?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum