word中我有两个表格,其中第一个表格不管记录有多少条,只要一个,
第二个表格Table2(2),根据记录的n条数,需要在下一节复制n个
Dim app As New MSWord.Application
Try
Dim doc = app.Documents.Open(ProjectPath & "Attachments\报表模板\检测报告单和数据处理\模板一\" & biaogem & ".docx") '签名的文档
With Doc.Content.Tables(1)
....
End With
For i As Integer = 0 To jilu.Count - 1
插入节,并拷贝表格 Doc.Content.Tables(2) ?
Next
....
doc.saveas(fl,MSWord.WdSaveFormat.wdFormatDocumentDefault)
doc.Close()
app.Quit
Catch ex As Exception
End Try