DevTun
DevTun

Reputation: 880

word 2010 interop : edit word document header

I am using word 2010 and DSOFramer control to embedded word document in winforms application and I have to enter the header edit mode I am using the code below :

if (wordDocument.ActiveWindow.View.SplitSpecial != WdSpecialPane.wdPaneNone)
    wordDocument.ActiveWindow.Panes[2].Close();
  if (wordDocument.ActiveWindow.ActivePane.View.Type == WdViewType.wdNormalView ||
    wordDocument.ActiveWindow.ActivePane.View.Type == WdViewType.wdOutlineView)
    wordDocument.ActiveWindow.ActivePane.View.Type = WdViewType.wdPrintView;
  wordDocument.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekCurrentPageHeader;

but the application become unresponsive when executing this line :

wordDocument.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekCurrentPageHeader;

Best regards.

Upvotes: 0

Views: 1153

Answers (1)

DevTun
DevTun

Reputation: 880

Solution can be found here Word 2010 header edition

Upvotes: 1

Related Questions