社区
Delphi
帖子详情
用delphi控制word,如何替换word中页眉文字,或者设置页眉
masong_1978
2013-06-13 03:29:39
如题,我想用delphi控制word,如何替换word中页眉文字?
...全文
380
5
打赏
收藏
用delphi控制word,如何替换word中页眉文字,或者设置页眉
如题,我想用delphi控制word,如何替换word中页眉文字?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
随行的太阳
2013-06-16
打赏
举报
回复
虎子8
2013-06-15
打赏
举报
回复
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader ActiveDocument.AttachedTemplate.BuildingBlockEntries(" 空白").Insert Where:= _ Selection.Range, RichText:=True Selection.TypeText Text:="就这样明白吧" ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument 这是vb的转下delphi 一看就知吧
yadan_tanchfeng
2013-06-14
打赏
举报
回复
用Word录制个宏,参考宏里面的代码
reverzeng
2013-06-14
打赏
举报
回复
调用word功能,先搜索,再替换,可参考: var FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace: OleVariant; begin FindText := '<#Name>'; MatchCase := False; MatchWholeWord := True; MatchWildcards := False; MatchSoundsLike := False; MatchAllWordForms := False; Forward := True; Wrap := wdFindContinue; Format := False; ReplaceWith := 'Delphi'; Replace := True; WordDocument.Range.Find.Execute( FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace ); end;
masong_1978
2013-06-13
打赏
举报
回复
大侠们帮帮忙了
python 批量删除
word
页眉
页脚
最近有小伙伴下载了一些
word
文档,
页眉
页脚有很多图片,找我想批量清理下。 于是我写了个脚本,希望能帮到一些朋友。 使用须知: 1、务必将需去除
页眉
页脚的
word
文件存放在d:\\
word
目录下 2、执行:双击 exe文件 3、新文件会在 d:\\
word
_new\日期\ 目录下生成 4、本文涉及的
word
版本在2007之后的版本。2003及以前的版本不生效
word
2021
中
页眉
页脚七个使用技巧.docx
word
2021
中
页眉
页脚七个使用技巧.docx
传统方法去掉
Word
2021
中
页眉
页脚里的下划线.docx
传统方法去掉
Word
2021
中
页眉
页脚里的下划线.docx
WPS2021
中
页眉
页脚的设计技巧.docx
WPS2021
中
页眉
页脚的设计技巧.docx
在
Word
2021
中
如何去掉
页眉
横线.docx
在
Word
2021
中
如何去掉
页眉
横线.docx
Delphi
5,935
社区成员
262,943
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章