Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to print embedded word document

 
Eswar Rao Varthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing problem while printing word document embedded in html page. I have taken an iframe and displaying in web page with innerhtml. Here is the code snippet.

var txt="<iframe width=100% height=100% frameborder=0 ";
txt=txt+"src="+sourceurl+"></iframe>";
document.getElementById("default").innerHTML=txt;

When I tried to print the word document it is taking as whole web page and not printing that word document whereas pdf document is getting printed properly. Is there any other way to embed the document in html page apart from the innerhtml? Please help me.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Ranch,Eshwar.....

You can use "Object" tag of HTML for embedding the word doc in your HTML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic