zoukankan      html  css  js  c++  java
  • using crystalreport generate PDF2

        Dim rpt As New ReportDocument
                Dim DirPath As String = Application.StartupPath & "\"

                Dim DataSet1 As DataSet
                DataSet1 = New Xsd_Invoice
                DataSet1.Tables("Students").Merge(Invoice.INVOICE_GetStudentInfo_One _
                (FamilyID))
                DataSet1.Tables("tblStudentPaymentInvoice").Merge(Invoice.INVOICE_GetStudentPaymentInvoice_One _
                             (InvoiceID, SessionID))
                DataSet1.Tables("tblStudentPaymentDetailForInvoice").Merge(Invoice.INVOICE_GetStudentPaymentDetail_One _
                             (InvoiceID, SessionID))
                DataSet1.Tables("Parent").Merge(Invoice.INVOICE_GetParentInfo_One _
                             (FamilyID))
                DataSet1.Tables("TblSession").Merge(Invoice.INVOICE_GetSession(SessionID))
                rpt.Load(DirPath & "Report\Rpt_StudentFeeInvoice.rpt")
                rpt.SetDataSource(DataSet1)

                '-----开始导出PDF-------
                rpt.ExportToDisk(ExportFormatType.PortableDocFormat, path)
  • 相关阅读:
    try catch 和\或 finally 的用法
    postgresql与oracle对比
    今天遇到个let: not found
    NTLM相关
    【搜藏】net use命令拓展
    【shell进阶】字符串操作
    【网摘】网上邻居用户密码
    测试导航
    关系代数合并数据 left join
    真正的程序员
  • 原文地址:https://www.cnblogs.com/zyip/p/2534513.html
Copyright © 2011-2022 走看看