Hi All,
I'm creating a crystal report that will be accessed via a website. The code is below. The problem is that when i run the program and click the link to the report, i am only seeing the column headings but no data.
Please reply as to how i can fix this problen
Imports
CrystalDecisions.CrystalReports.Engine
Imports
CrystalDecisions.Shared
Imports
System.Data
Partial
Class Default3
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
ConfigureCrystalReports()
End Sub
Private Sub ConfigureCrystalReports()
Dim connecinfo As ConnectionInfo = New ConnectionInfo
With connecinfo
.ServerName =
"mySever"
.DatabaseName =
"myDbase"
End With
Dim reportpath As String = Server.MapPath("CrystalReport.rpt")
CrystalReportViewer1.ReportSource = reportpath
End Sub
Private Sub SetDBLogonForReport(ByVal ConnecInfo As ConnectionInfo)
Dim myTableLogOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
myTableLogOnInfo.ConnectionInfo = connecInfo
Next
End Sub
End
Class