3
Answers

How to open excel doc in aspx page?

Raja

Raja

8y
386
1
how to view the excel document in aspx page using iframe.how to use this one i have used .
 

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ContentType="application/vnd.ms-excel" %>

 <iframe src="" width="400" height="300" ></iframe>
 
i have used  above code but the excel file is directly downloaded not opened how to do it.
Answers (3)
2
Mohamed Abedallah

Mohamed Abedallah

NA 574 67 8y
If you main goal is to display excel documents on web, you can try using HTML5 document viewer control from LEADTOOLS. This control allows you to render PDF and office documents files in a webpage.
Check the online demo using this link:
http://demo.leadtools.com/JavaScript/DocumentViewer/index.html

Disclaimer: I work for the company that created this library.
2
Prasanna Murali

Prasanna Murali

NA 8.9k 374.6k 8y
Refer this link
 
http://www.c-sharpcorner.com/uploadfile/eb5fab/show-excel-file-in-aspx-page/
1
Gnanavel Sekar

Gnanavel Sekar

NA 6.8k 452.1k 8y
https://www.codeproject.com/Questions/248678/How-to-open-Excel-XLS-file-in-Csharp-net
https://forums.asp.net/t/1561075.aspx?open+excel+file+in+browser+
http://stackoverflow.com/questions/7958174/how-to-open-excel-file-in-asp-net-with-c-sharp
https://code.msdn.microsoft.com/ASPNET-Document-Viewer-e7c2a39f 
https://www.daniweb.com/programming/web-development/threads/209532/how-to-open-an-excel-file-with-in-the-asp-net-web-page