how to set header and footer to a word file created by word .application object in VB.net.
word.application object in vb.net
Collapse
X
-
sajithamolTags: None
-
Originally posted by sajithamolhow to set header and footer to a word file created by word .application object in VB.net.
Dim m_WordDoc As Word.Document
m_WordDoc.Activ eWindow.ActiveP ane.View.SeekVi ew = Word.WdSeekView .wdSeekCurrentP ageHeader
m_WordDoc.Appli cation.Selectio n.TypeText(Text :="Test Header")
m_WordDoc.Activ eWindow.View.Se ekView = Word.WdSeekView .wdSeekMainDocu ment
The same way you can put your own footer by changing wdSeekCurrentPa geFooter.....
Hope this helps.....
Thanks
Comment