In this article I will explain with an example, how to display (show) Word document (.doc, .docx), Excel Spreadsheet (.xls, .xlsx), PowerPoint presentation (ppt, .pptx) files and PDF documents (.pdf) in browser Web page in ASP.Net.
Google Drive allows to share and display (show) Word document (.doc, .docx), Excel Spreadsheet (.xls, .xlsx), PowerPoint presentation (ppt, .pptx) files and PDF documents (.pdf) in browser Web page.
 
 
Steps to display Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
1. Upload the file to be displayed on web page to the Google Drive.
Display (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
 
2. Right Click on the document to be displayed in Web page and Open with option as shown below.
Display (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
 
3. Once the document is opened, click the Share button as show below.
Display (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
 
4. Inside the Share with others Popup, click on the Get shareable link to generate the Public link to the document.
Display (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
 
Now copy the generated link from the TextBox.
Display (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
 
5. Finally copy the URL and set it as source to an HTML IFRAME in order to display the document on the web page.
<iframe frameborder="0" src="https://docs.google.com/spreadsheets/d/1NeUShwlPrOvHuO0gisl7XYnoNrqODw1x8JFNlzSaEro/edit?usp=sharing"
    width="600" height="800"></iframe>
 
 

Screenshot
The Excel spreadsheet displayed in browser
Display (Show) Word, Excel, PowerPoint (PPT) and PDF files in browser web page in ASP.Net
 
 
Demo
 
 
Downloads