.net操作word lib DocX
2024-08-30 09:07:40
http://cathalscorner.blogspot.hk/2010/06/cathal-why-did-you-create-docx.html
using (DocX document = DocX.Load(@"C:\source\3.docx"))
{
Formatting mFormatting=new Formatting();
document.ReplaceText("«bbbb»", "bbbaaaaaaaaaaa",
false, RegexOptions.Singleline, null, null, MatchFormattingOptions.ExactMatch, true, true);
document.Save();
}
最新文章
- HTML5- Canvas入门(四)
- ABP 初探 之 多语言
- flex 布局笔记
- 【GoLang】golang context channel 详解
- Android TextView 显示不全的自动补齐方式
- 数据库性能优化:SQL索引
- WP开发笔记——不同Item显示不同ApplicationBar:适用于Pivot与Panorama
- Codeforces Round #272 (Div. 2)
- java中-静态代码块、构造代码块、构造方法的联系
- Mindset + Know-how+Concepture + Methodology+Technology
- 向.net后端发送请求获取数据,在前端动态填充表格
- windows的DOS窗口如何修改大小
- input【type=";checkbox";】标签与字体对齐
- Linux中的 openssl-opensslv
- LeetCode108.将有序数组转换为二叉搜索树
- 干货|基于 Spring Cloud 的微服务落地
- ubuntu18.04配置nvidia docker和远程连接ssh+远程桌面连接(二)
- 快速排序C++实现
- Steps to configure a FileShare Quorum Witness for Windows Failover Cluster
- Linux 压缩文件的命令行总结