如何使用C#应用程序以txt格式转换我的docx文件? [英] How I can convert my docx file in txt format using C# application?

查看:85
本文介绍了如何使用C#应用程序以txt格式转换我的docx文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用c#windows应用程序将我的docx数据转换为txt格式?... c#中有任何函数,所以我可以将我的word文件转换为txt文件



我尝试了什么:



我想使用c#windows应用程序将我的docx数据转换为txt格式?...是c#中有任何函数,所以我可以将我的word文件转换成txt文件

I want to convert my docx data into txt format using c# windows application?...is there any function in c# so i can convert my word files into txt files

What I have tried:

I want to convert my docx data into txt format using c# windows application?...is there any function in c# so i can convert my word files into txt files

推荐答案

我知道你已经有了一个由OriginalGriff提供的工作解决方案,但是我想添加我的替代方案:

在Word文档中查找文本 [ ^ ]

本文演示了如何对多个DOCX文件执行快速搜索,为此,它将DOCX格式的内容转换为纯文本。
I know you already have a working solution provided by OriginalGriff, nevertheless I wanted to add my alternative:
Find Text in Word Documents[^]
The article demonstrates how to perform fast searches over multiple DOCX files and in order to do that it converts DOCX formatted content into a plain text.


问题是在docx文件中包含大量格式信息,文本文件对此一无所知。因此,最终产品可能无法使用。

但是...... 使用DocxToText从DOCX文件中提取文本 [ ^ ]可能会有所帮助。
The problem is that docx files contain a lot of formatting information, which a text file won't know anything about. As a result, the end product may not be usable.
But...Using DocxToText to Extract Text from DOCX Files[^] may help.


这篇关于如何使用C#应用程序以txt格式转换我的docx文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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