Dim Book As New XLS.Book(ProjectPath & "Attachments\清单.xls")
Dim Sheet As XLS.Sheet = Book.Sheets(0) '引用工作簿的第一个工作表
Dim fl As String = ProjectPath & "Reports\清单.xls"
Book.Build() '生成细节区
Book.Save(fl) '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = fl
Proc.Verb = "Print" '指定动作
Proc.Start()
proc.close()
Proc.Verb = "Print" '指定动作
这是直接打印
预览的代码如何写?