-
如何使用DocX 库在 .DOCX 文件中替换一列单词
翻译 maninwest@Codeforge 作者:B. Clay Shannon@Codeproject使用 DocX 库替换 .docx 文件中的字任务我想替换英式英语的拼写为美式口语。例如, 替换 "colour" 为 "color", "centre" 为 "center", "plough" 为"plow", 等。我可以使用查找>替换来一个一个地替换,但是很麻烦。所以,我找到一个库 。为了使用这个 docx库,只需从 这里 下载(docx.dll)。在你的项目中添加到它的引用,然后添加此 using子句:using Novacode;
首先需要加载具有”错误"拼写的文档:string filename = string.Empty;
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
filename = openFileDialog1.FileName;
}
else
{
MessageBox.Show("No file selected - hasta la vista and Ciao, baby!");
return;
}
using (DocX document = DocX.Load(filename))
{
document.ReplaceText("travelled", "traveled");
document.Save();
}
我们当然想以此完成所有词汇替换。首先,我们需要有一列单词,这样编码: 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-01-25 21:24:19下载
- 积分:1
-
我é索德克莱默
应用背景应用倒resoudre系统。linaire PAR方法克莱默关键技术克莱默系统lineaire分析民érique ;应用
- 2022-10-15 06:05:03下载
- 积分:1
-
gained information of network card, whether check network,style,address,DNS.
得到网卡信息
可以检测 是否有网卡,类型,地址,网关-gained information of network card, whether check network,style,address,DNS.
- 2022-01-25 20:43:15下载
- 积分:1
-
Snake game hopes of learning vc++ The users some help or a graduation project fo...
贪吃蛇游戏希望对学习vc++的网友们有些帮助或是对做毕业设计的人们有些小小的帮助-Snake game hopes of learning vc++ The users some help or a graduation project for people to do some small help
- 2022-03-10 10:39:16下载
- 积分:1
-
使用windows的API编程,一个小游戏,这个程序可以让你了解一些基本的API用法,对于初学者可以对照msdn来学习...
使用windows的API编程,一个小游戏,这个程序可以让你了解一些基本的API用法,对于初学者可以对照msdn来学习-Windows programming using the API, a small games, this procedure can let you know some basic API usage, for beginners to learn to control msdn
- 2022-06-03 20:42:47下载
- 积分:1
-
vc control, can display multi
vc控件、可以显示多排标签页片的标签控件。-vc control, can display multi-row tab control tablets tag.
- 2023-07-29 03:40:03下载
- 积分:1
-
软件文件自动更新源代码,使用本程序,可以自动更新WEB服务器上的程序,使用XML文件作为配置文件。...
软件文件自动更新源代码,使用本程序,可以自动更新WEB服务器上的程序,使用XML文件作为配置文件。-Software automatically updates the source code file, use this procedure, you can automatically update the WEB server, the use of XML files as configuration files.
- 2022-01-25 22:59:44下载
- 积分:1
-
C++中的高斯和高斯赛德尔实施
这是执行高斯和高斯-赛德尔方法求解线性方程组。方法要求作为 (中的一个向量的向量形式) 的一个矩阵的线性方程组。他们两个返回结果向量。所有一切都是 double 类型。高斯方法是充分的高斯执行,不需要一个上三角矩阵 — — 它可以执行任何类型的矩阵上,仍将工作。
- 2023-01-02 09:20:03下载
- 积分:1
-
VC with the preparation of their own ImagConvert a wave file to read and calcula...
ImagConvert 自己用VC编写的一个读取wave文件,并计算短时能量、短时过零率以及自相关函数的程序。-VC with the preparation of their own ImagConvert a wave file to read and calculate the short-time energy, zero-crossing rate and short-time auto-correlation function of the process.
- 2022-05-17 10:10:07下载
- 积分:1
-
一个用VB开发的数据库管理系统。数据库使用ACCESS 2000。具有完整的开发设计文档和数据库设计文档。是做毕业设计的最佳参考。代码风格规范。完整的实现VB对...
一个用VB开发的数据库管理系统。数据库使用ACCESS 2000。具有完整的开发设计文档和数据库设计文档。是做毕业设计的最佳参考。代码风格规范。完整的实现VB对MDB数据库的增加,删除,查询,打印,报表等功能。所有源码免费开放.很难得的一套管理系统的源码啦--Using VB to develop a database management system. Database using ACCESS 2000. With a complete development of design documents and database design documents. Graduation project is to do the best reference. Code style norms. VB to realize a complete MDB database to add, delete, query, print, statements and other functions. All source code is free. Hard to come by a set of source code management system啦--
- 2022-02-14 01:41:33下载
- 积分:1