通过excel报表进行打印,打印后提示 是否保存,能否取消 Post By:2014/4/24 14:14:00 [显示全部帖子]
Dim dt As Table = Tables("CAF库存表") dt.Filter="" dt.Select(0,0,dt.Rows.Count-1,0) Dim Book As New XLS.Book(ProjectPath & "Attachments\盘点汇总piao.xls") '打开模板 Dim fl As String = ProjectPath & "Reports\盘点汇总piao.xls" Dim Sheet As XLS.Sheet = Book.Sheets(0) Book.Build() '生成报表 Book.Save(fl) Dim Proc As New Process Proc.File = fl proc.Verb ="Print" Proc.Start()