generate excel with chart from .NET

2019-07-07 04:05发布

问题:

I have a WPF application and I need to generate an excel file that also contains charts? What is the best way of doing that? If possible, I want to avoid using the excel interop. Thx, L

回答1:

Look at this http://epplus.codeplex.com/wikipage?title=StatisticsSheetExample



回答2:

I just found http://epplus.codeplex.com. Think I'm going to give it a try, it supports charts.



回答3:

OfficeWriter is another mature .NET library for Excel that supports adding charts:

http://www.officewriter.com