Dim rs As List(of Row) = Tables("挂证付款申请").GetCheckedRows() For Each r As Row In rs Dim Book As New XLS.Book(ProjectPath & "Attachments\挂证付款申请.xls") Dim fl As String = ProjectPath & "Reports\挂证付款申请.pdf" Book.Build() '生成细节区 Book.SaveToPDF(fl) '保存为PDF文件 Dim Proc As New Process '打开PDF文件 Proc.File = fl Proc.Start() Next