将.doc转换为.csv的C#代码 [英] C# code behind conversion for .doc to .csv

查看:65
本文介绍了将.doc转换为.csv的C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何转换.doc文件.csv文件,我不需要转换器,我需要在此后面的C#代码.....

how to convert .doc file .csv file, i don''t need converter, i need C# code code behind this.....

推荐答案

如果需要这样的代码,则可以编写.

您将需要使用Office互操作程序集之一.请参阅:
http://msdn.microsoft.com/en-us/library/15s06t57%28v = vs.100%29.aspx [ ^ ].

另请参见:
http://msdn.microsoft.com/en-us/office/hh128772.aspx [ ^ ].

使用C#,您只需要使用添加引用"窗口的".NET"选项卡添加程序集.您所需的程序集将在名称"Microsoft.Office.Interop.Word"下找到;寻找合适的版本.

—SA
If you need such code, you can write it.

You will need to use one of the Office interop assemblies. Please see:
http://msdn.microsoft.com/en-us/library/15s06t57%28v=vs.100%29.aspx[^].

See also:
http://msdn.microsoft.com/en-us/office/hh128772.aspx[^].

With C#, you just need to add the assembly using the tab ".NET" of the "Add Reference" window. The assembly you need will be found under the name "Microsoft.Office.Interop.Word"; look for appropriate version.

—SA


这篇关于将.doc转换为.csv的C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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