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)
  • 相关阅读:
    Swift基础学习
    APP的线程安全
    LintCode-O(1) Check Power of 2
    LintCode-Maximum Subarray Difference
    LintCode-Subarray Sum Closest
    LintCode-Rehashing
    Lintcode-Max Tree
    LintCode-Interleaving Positive and Negative Numbers.
    LintCode-Topological Sorting
    LintCode-Rotate String
  • 原文地址:https://www.cnblogs.com/zyip/p/2534513.html
Copyright © 2011-2022 走看看