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