Tuesday 12 February 2013

Opening Office Documents in Iframe within Browser


Opening Office Documents in Iframe within Browser


If a Word, Excel or PowerPoint document (.doc, .docx, .xls, .xlsx, .ppt, .pptx formats) hosted on the web is accessed through a browser, it typically asks if you want to open or save the file. You can then view it if you have MS Office or the corresponding Word/Excel/PowerPoint Viewer (freely downloadable) installed.

To increase the reach of the content in those Office documents among non-PC/Mac users, you can use Google Docs Viewer to embed them within a web page. Google Docs Viewer now supports 12 new file formats including Excel & Powerpoint.

You can generate the HTML tag for the embedded viewer that you can paste into your own web page from the home page of Google Docs Viewer. You can alternatively use the example below to append the URL of the Office document to the url querystring of the service -


<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fdocs.google.com%2Fviewer%3Furl%3

Dhttp%253A%252F%252Flabs.google.com%252Fpapers%252F

bigtable-osdi06.pdf&embedded=true" style="border: none;" 

height="780" width="600">

</iframe>



No comments:

Post a Comment

Thank You for Your Comments. We will get back to you soon.

back to top