Dim Book As New XLS.Book(ProjectPath & "Attachments\工序派工.xls")
Dim fl As String = ProjectPath & "Reports\工序派工.xls"
book.AddDataTable("派工表","XSC_ERP","Select * fr om {派工表} where 订单号= '" & Tables("分派工序_table1").current("订单号") & "'") '添加父表
Book.Build() '生成细节区
Book.Save(fl) '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = fl
Proc.Start()