Office Word Interop - 文档历史记录

时间:2013-08-19 11:40:02

标签: c# ms-word office-interop docx

我遇到以下问题 - 我希望我的Word能够以.doc格式保存文档并提取其特定版本,然后将其转换为PDF格式。

使用此代码可以正常打开和转换:

Application wordApp = null;
lock (typeof (Application))
{
    OfficeWordHelper helper = new OfficeWordHelper();
    wordApp = helper.OpenApplicationWithFile(source);

    wordApp.ActiveDocument.SaveAs(ref target, WdSaveFormat.wdFormatPDF,
                                  ref unknown, ref unknown, ref unknown,
                                  ref unknown, ref unknown, ref unknown,
                                  ref unknown, ref unknown, ref unknown,
                                  ref unknown, ref unknown, ref unknown,
                                  ref unknown, ref unknown);
    wordApp = helper.CloseApplication(wordApp);
}

但是,我没有看到获取特定版本文档的方法,并且在特定版本上运行,例如将其保存为pdf。有人会有任何提示或代码片段吗?

0 个答案:

没有答案