Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Crystal Report Viewer Refresh Report?

$
0
0

Hey Guys,

 

Everytime I give crystalreportviewer1.refreshreport() it tells me it can't find a table in the database, but the data is not "live" when it first opens on the page.. so there has to be a way to refresh it right?  LOL Whats the trick?

 

J

 

My Current Code:

 

Private Sub ConfigureCrystalReports()            rpt = New ReportDocument()            Dim reportPath As String = Server.MapPath("1.1 Backlog.rpt")            rpt.Load(reportPath)        Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()        myConnectionInfo.DatabaseName = "database"            myConnectionInfo.UserID = "dbuser"            myConnectionInfo.Password = "dbpassword"            myConnectionInfo.ServerName = "dbserver"               CrystalReportViewer1.ReportSource = rpt        CrystalReportViewer1.DataBind()        CrystalReportViewer1.RefreshReport()    End Sub    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load        ConfigureCrystalReports()    End Sub

 


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>