Dim Book As New XLS.Book(ProjectPath & "Attachments\过期模板.xls") Dim fl As String = ProjectPath & "Reports\过期.xls" Book.Build() Book.Save(fl) Dim App As New MSExcel.Application Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open(fl) Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets(1) App.Visible = True Ws.PrintPreview