Dim lb As WinForm.Label = e.Form.Controls("路径信息Label2") Dim Book As New XLS.Book(ProjectPath & "Attachments\库存调整模板.xls") '打开模板 Dim Sheet As XLS.Sheet = Book.Sheets(0) Book.Build() '生成细节区 Book.Save(lb.Text) '保存工作簿 Dim Proc As New Process '打开工作簿 Proc.File = lb.Text Proc.Start()