簡體   English   中英

嘗試在Crystal Viewer中調用報表時出錯

[英]Error when trying to call a report in Crystal viewer

嘗試從VB中的其他表單在Crystal Viewer中調用此報表時,我始終收到阻止錯誤。 有人可以協助嗎?

 Private Sub Command1_Click()
     Dim crlApp As New CRAXDRT.Application
     Dim crlRep As CRAXDRT.Report

     Set crlRep = crlApp.OpenReport("E:\Finesse\vbDev\rpts\peemptime.rpt")
     Set Form1.CRViewer.ReportSource = cr1Rep
     Form1.CRViewer.ViewReport
     Form1.Show
 End Sub
    crlApp = New ReportDocument
    crlApp.Load(Server.MapPath("E:\Finesse\vbDev\rpts\peemptime.rpt"))
    crlApp.SetDataSource (Your Data Source)
    CRViewer.ReportSource = crlApp 
    crlApp.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, True, "ExportedReport")

    OR
    crlApp.ExportToHttpResponse(ExportFormatType.WordForWindows, Response, True, "ExportedReport")
    OR
    crlApp.ExportToHttpResponse(ExportFormatType.Excel, Response, True, "ExportedReport")

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM