简体   繁体   English

Datagridview使用XML格式导出到Excel

[英]Datagridview export to Excel using XML format

I tried Excel 12.0 object library to export datagridview to excel. 我尝试使用Excel 12.0对象库将datagridview导出到excel。 I don't want open the Excel instead I want to save the file.I don't have Excel installed where I am going to run this application. 我不想打开Excel,而是要保存文件。我没有在要运行此应用程序的位置安装Excel。 Is there anyway I can use XML format and save as Excel file? 无论如何,我可以使用XML格式并另存为Excel文件吗? I saw the example using Dataset to XML. 我看到了使用Dataset到XML的示例。 But I would like to export the data directly from Datagridview. 但是我想直接从Datagridview导出数据。 Please let me know. 请告诉我。

Thanks for any ideas.. 感谢您的任何想法..

您是否尝试过此Excel XML Writer库?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM