Click here to Skip to main content
15,904,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i display "Excel File" in Asp.net

I have an Excel sheet so i have to display data in asp.net in simple table formate so kindly please help me how can i do that.
Posted
Updated 28-Nov-13 19:46pm
v2

Refer below:-
you can do that using several ways like:-

using gridview:-
http://www.dotnetgallery.com/kb/resource16-Upload-and-display-excel-file-content-in-gridview-using-aspnet.aspx[^]

using Iframe:-
<iframe src="file:\\yourpath\yourfile.xls" width="100%" height="500"></iframe>

Using Excel Services:-
http://blah.winsmarts.com/2007-3-SharePoint_2007__Excel_Services_-_A_Quick_Introduction.aspx[^]
 
Share this answer
 
Comments
Janardhan.GRD 14-Sep-15 7:36am    
i am using iframe code and all it does is show cannot use local resources in mvc4
Janardhan.GRD 14-Sep-15 7:37am    
Not allowed to load local resource: file:///C:/Users/TECH-1/Desktop/report.xls
Anis Mohd Said 9-Oct-18 21:57pm    
what will be displayed when using iframe? can i have the image?
 
Share this answer
 
hi,
you can use Microsoft report viewer(reporting tool)to view in excel and pdf of any table, but your requirement is different but you can try that tool to generate report in excel.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900