以下是引用有点蓝在2016/11/29 17:26:00的发言:
Dim tm As String = ProjectPath & "Attachments\\2015版销售合同.doc" \'指定模板文件
Dim fl As String = ProjectPath & "Reports\\2015版销售合同.doc" \'指定目标文件
Dim wrt As New WordReport(Tables("合同主表"),tm,fl) \'定义一个WordReport
wrt.Build() \'逐行生成报表
wrt.Quit
Dim app As New MSWord.Application
Dim doc As object = app.Documents.Open(fl)
For i As Integer =1 To doc.InlineShapes.Count
doc.InlineShapes(i).ConvertToShape
Next
app.Visible = True
报错:集合所要求的成员不存在