Reputation: 880
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