vsto里引用spire.doc会报错
求助
Spire.Doc.Document doc = new Spire.Doc.Document();
Spire.Doc.Section section = doc.AddSection();
doc.SaveToFile("TestVSTO.docx");
Word.Application wordApp = Application;
wordApp.Documents.Open("TestVSTO.docx");
object start = 0, end = 0;
Word.Range rng = this.Application.ActiveDocument.Range(ref start, ref end);
rng.InsertParagraphAfter();
rng.InsertParagraphAfter();
rng.SetRange(rng.End, rng.End);
rng.Tables.Add(this.Application.ActiveDocument.Paragraphs[2].Range, 2, 2, ref missing, ref missing);
Word.Table tbl = this.Application.ActiveDocument.Tables[1];
tbl.Range.Font.Size = 14;
object styleName = "Table Professional";
tbl.set_Style(ref styleName);
tbl.Cell(1, 1).Range.Text = "Spire.Doc";
this.Application.ActiveDocument.Save();