用于将数据表转换为Excel工作表的Microsoft API实现? [英] Microsoft API implementation for convert datatable to Excel sheet?

查看:157
本文介绍了用于将数据表转换为Excel工作表的Microsoft API实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用Microsoft API将数据表数据转换为Excel工作表?

How can we use the Microsoft API for convert Data Table data to the Excel Sheet?

推荐答案

您需要使用Office工具才能做到这一点只需阅读文档即可.或者,您可以尝试创建与较新文件格式兼容的XML.这些只是zip中的XML.
You need the tools for office to do that, then you can just read the docs. Or you can try to create XML that''s compatible with the newer file format. Those are just XML in a zip.


正如克里斯蒂安所说,您必须创建与较新文件格式兼容的XML.
As Christian Said you have to create a XML that is compatible with the newer file format.


如果不想使用Christian和Ramalings提出的XML,请尝试使用较旧的方法,即使用StreamWriter.请参考将DataTable转换为Excel [
If you don''t want to use XML as proposed by Christian and Ramalings, try the older way i.e using StreamWriter. Refer Convert DataTable to Excel[^]

Hope this helps !


这篇关于用于将数据表转换为Excel工作表的Microsoft API实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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