将输入文件(.docx,.xlsx,.ppt,xls等.)转换为C#中的xml [英] Convert input file(.docx,.xlsx,.ppt, xls etc..) into xml in C#

查看:114
本文介绍了将输入文件(.docx,.xlsx,.ppt,xls等.)转换为C#中的xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



可以告诉我如何转换输入文件,该文件可以是.docx,.xlsx,.pptx,xls等中的任何一个.转换为C#中的xml文件.

如果您提供任何示例应用程序,将很有帮助.


谢谢
LEE

Hi,

Can tell me how to convert an input file which can be any of .docx,.xlsx,.pptx ,xls etc,. into xml file in C#.

It will be helpfull if u provide any example applications.


Thanks
LEE

推荐答案

它们都是Office格式,因此您需要使用Microsoft Office工具与Office进行互操作,以进行安装.读取数据,然后将其导出为XML.

Google有大量的Office互操作示例.
They are all office formats, so you''d need to use the Microsoft Tools for Office to interop with Office, which would need to be installed, to read the data and then export it to XML.

Google has tons of examples of Office interop.


这篇关于将输入文件(.docx,.xlsx,.ppt,xls等.)转换为C#中的xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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