0

我用 MS Interop lib 阅读了 word 文档。但 50 页 word 文档逐字阅读 30 分钟

我的代码:

var app = new ApplicationClass();
object file = filePath;
object nullobject = Missing.Value;

var doc = app.Documents.Open
    (ref file, ref nullobject, ref nullobject, ref nullobject,
    ref nullobject, ref nullobject, ref nullobject, ref nullobject,
    ref nullobject, ref nullobject, ref nullobject, ref nullobject,
    ref nullobject, ref nullobject, ref nullobject, ref nullobject);

doc.ActiveWindow.Selection.WholeStory();
doc.ActiveWindow.Selection.Copy();
app.Visible = false;
4

0 回答 0