如何在不使用Open Xml dll的情况下将数据导出为ex​​cel(.XLSX)格式? [英] How to export data to a excel (.XLSX) format, without using Open Xml dll?

查看:64
本文介绍了如何在不使用Open Xml dll的情况下将数据导出为ex​​cel(.XLSX)格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含记录列表的数据表。



需要将数据表记录导出为ex​​cel .xlsx格式,而不使用OpenXml dll。 />


语言:C#

.Net Framework版本:2.0

I have a data table with a list of records.

Need to export that data table records to excel .xlsx format, without using OpenXml dll.

Language: C#
.Net Framework version: 2.0

推荐答案

有没有使用某种非标准软件就无法做到这一点,但最不干扰的方法可能是使用Excel ODBC驱动程序。这样你就可以使用普通的ADO.net代码读取'\\\\\\\\\\\\\\\\\\\\\\\\\\我只需要学习xslt格式并编写自己的代码来操作它。
There is no way of doing this without using some kind of non-standard software, but the least intrusive way is probably to use the Excel ODBC driver. That lets you read\write Excel sheets as if they were database tables using normal ADO.net code.

If you want to do this using code alone then you'll just have to learn the xslt format and write your own code for manipulating it.


这篇关于如何在不使用Open Xml dll的情况下将数据导出为ex​​cel(.XLSX)格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆