使用C#更改标题中的文本 [英] Change text in a header using C#
本文介绍了使用C#更改标题中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如何使用C#更改Microsoft Word 2007标头中的文本?
Thks
Hi all,
How do i change text in a header of microsoft word 2007 using C#?
Thks
推荐答案
在这里看看
http://msdn.microsoft.com/en-us/library/bb498197(office .12).aspx [ ^ ]
http://www.word.mvps.org/FAQs/Customization/ProtectWord2000PlusHeader.ht [ ^ ]
Have a look here
http://msdn.microsoft.com/en-us/library/bb498197(office.12).aspx[^]
http://www.word.mvps.org/FAQs/Customization/ProtectWord2000PlusHeader.ht[^]
我听不懂.你能解释清楚吗? Thks
I can''t understand. Can you explain clearly? Thks
doc.Sections[1].Headers[Microsoft.Office.Interop.Word.WdHeaderFooterIndex.wdHeaderFooterPrimary].Range.Text = "my header";
这篇关于使用C#更改标题中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文