我正在使用document.Active()
方法,它是Microsoft.office.interop.word
命名空间的一部分。我想打开文件,即我想看到Word应用程序中打开的文件。我已将thetrackRevisions
属性设置为true,并将其余部分设置为true。
我只想让文件打开NOT IN SAVE-AS MODE。只需打开,这样当我从DB或PC驱动器打开文档时,我只想打开它。
以下是我正在执行的代码:
Word.Document tempDoc = app.Documents.Open("E:\\xyz.docx");
// Activate the document so it shows up in front
tempDoc.Activate();
tempDoc.TrackRevisions = true;
foreach (Revision rev in tempDoc.Revisions)
{
string editedBy = rev.Author;
//string what = rev.Cells;
}
tempDoc.Close(ref Nothing, ref format, ref Nothing);
您想到的任何建议?
答案 0 :(得分:0)
你只想要开词吗? 你试过吗
Process.Start('word to word plus filename');