Dim Book As New XLS.Book(ProjectPath & "Attachments\中凯派车单.xls")
Dim r As Row = Tables("PC").current
Dim fl As String = "C:\Users\a1898\Desktop\单据\派车单\" & ("SO号") & r("订舱号") & ("派车单") & r("托运日期") & r("地址简称") & ".PDF"
Dim Sheet As XLS.Sheet = Book.Sheets(0)
Sheet(1,13).Value = "<勾选 = # Ture #>" '写入打印条件
Book.Build() '生成细节区
Book.SaveToPDF(fl) '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = fl
Proc.Start()
Proc = New Process '打开工作簿
Proc.File = FileSys.GetParentPath(fl)
Proc.Start()