asp.net - Automatically adding rows to excel file template -


I am running a .NET 4.0 asp.net application on IIS 7. I want to know that an easy way to add lines for an Excel 2007/2010 (not a template file) that a user can download from the server.

For example, the user can see some tick boxes and click on a button on the web page. A SQL query on the server table and comes back with the result. My web app has an Excel file with some headings, column titles, formatting, etc. on the resource directory. I want to copy this file, insert each result as a line in this file (Enter the first name in cell A3, give last name in cell B3 etc.). And make it available to save the user to your disk.

The Excel (XLS) format is an "open format", so I was wondering how easy it would be / straight forward. Is it the case of Loading XML and XML element in Excel XML DOM? What do I need to use libraries?

Any help or resources will be highly appreciated.

I did this properly, you will see an Excel template that is open source libraries as NPOI How easy is it to use?

These links should help you get there:


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -