【问题标题】:word 2010 interop : edit word document headerword 2010 互操作:编辑 word 文档标题
【发布时间】:2011-07-13 15:03:20
【问题描述】:

我正在使用 word 2010 和 DSOFramer 控件在 winforms 应用程序中嵌入 word 文档,我必须进入标题编辑模式我正在使用以下代码:

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;

但执行此行时应用程序变得无响应:

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

最好的问候。

【问题讨论】:

    标签: interop ms-word dsoframer


    【解决方案1】:

    可以在这里找到解决方案Word 2010 header edition

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-11
      相关资源
      最近更新 更多