开发者

How can I read/write to an Excel template (.xltx) from C#?

开发者 https://www.devze.com 2023-03-29 08:45 出处:网络
I have ReportTemplate.xltx in my Visual Studio solution/project. How can I read and write data from my ExcelReport.DataGrid using my ReportTemplate.xltx tem开发者_开发知识库plate in my solution?

I have ReportTemplate.xltx in my Visual Studio solution/project. How can I read and write data from my ExcelReport.DataGrid using my ReportTemplate.xltx tem开发者_开发知识库plate in my solution?

Basically I want to put the data in my datagrid into a new excel file using my report template.

How can I do that?


The Open XML SDK from Microsoft allows you to work with the XSLX files using c# without requiring Excel to be installed.

I assume it also covers XLTX files (but I haven't confirmed it myself).

0

精彩评论

暂无评论...
验证码 换一张
取 消