generating nicely formatted excel files in ASP.net

2019-08-17 07:17发布

Generating normal columnar data in excel file is quite easy but does any one of you have generated excel files having datas in different blocks placed in different sheets and beautifully formatted without having to manipulate the excel file using COM [which i want to avoid]. Any ideas would be really helpful.

The output excel file should be compatible with Office 2003 + office 2007

标签: asp.net excel
4条回答
一纸荒年 Trace。
2楼-- · 2019-08-17 07:36

Don't know exactly (as I've Excel installed on both my dev and server machines) but I think ExcelPackage can do the trick.

查看更多
Rolldiameter
3楼-- · 2019-08-17 07:38
我只想做你的唯一
4楼-- · 2019-08-17 07:44

Check spread sheet gear, with the help of spread sheet gear I have created excel with very good formating as well

http://www.spreadsheetgear.com/

查看更多
可以哭但决不认输i
5楼-- · 2019-08-17 07:48

If you're not creating many spreadsheets, or don't wish to buy a product which makes this easier, your solution might be to use templates.

Create a excel document, in the style you want, then save it as xml. Then modify the xml document as you like, using place holders or whatever, to generate your documents.

This works for simple reports where you don't want to use a 3rd party product. For anything else I'd recommend a product specializing in this.

查看更多
登录 后发表回答