[英]List of objects to Excel Spreadsheet?
Anyone know of some code out there that does this already? 任何人都知道那里已经有一些代码吗? I have a bunch of pages with data grids on them in an admin website they want to export them to Excel, was hoping someone had this written already - or if not I'll post mine when I am done.
我在一个管理网站上有一堆带有数据网格的页面,他们想将它们导出到Excel,希望有人已经编写了此文件-否则,我完成后会发布我的文章。
Excel can open files in the format of CSV and XML - it can also generate the schema file. Excel可以以CSV和XML格式打开文件-它还可以生成架构文件。
if you have data grids then the chances are you have data sets. 如果您有数据网格,那么您就有数据集。
There is a method on the dataset to output as XML. 数据集上有一种方法可以输出为XML。 you probably have to use an xmlWriter to save the file.
您可能必须使用xmlWriter来保存文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.