Home » excel » c# – Excel Plugin for ASP.NET application

c# – Excel Plugin for ASP.NET application

Posted by: admin April 23, 2020 Leave a comment

Questions:

I am working on an ASP.NET application. I want to embed/display (if possible) an Excel file into the application (in my browser), such that all of its functionality, like adding expressions and filters, is present. It’s a cloud-based application and I would prefer an open source (OpenOffice?) solution.

How to&Answers:

You can’t really embed an excel file and have it displayed on your site. The best you can do is try to use your excel file as a data source for something like the grid control from Telerik. It has pretty advanced functionality, but still doesn’t approach Excel itself, so you’d have to test to see if it does what you need.

As for open source options, there are definitely solutions for displaying grids of data, but none of them have really advanced functionality unless you program it yourself.

Answer:

Maybe the Office Web Component can do this.

Answer:

You can host an Excel file via Sharepoint + Office Web Apps and then embed your file (hosted by Office Web Apps) via an iFrame on your page. Running your own Windows Server 2008 R2 + Sharepoint + Office Web Apps is pretty expensive in licensing terms, but there are many “hosted sharepoint” providers now-a-days.

You can also put in SkyDrive (Public folder) : Example

Excel files on SkyDrive can be embedded on other web page (via iFrames) just like an eqivalent Google Docs document. Detailed instructions from Microsoft here