I have created Crystal Report in VS 2005. Crystal Report is bound using the SQL Server. Report is working correctly, Report is displaying the results (Main Report Preview) .
I call the Crystal Report on form as follows : -
When I run the form, I am getting the Error on Button Click : -
I call the Crystal Report on form as follows : -
Code:
Imports CrystalDecisions.CrystalReports.Engine
Public Class FrmCall_UserReport
Private Sub btnShowReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowReport.Click
Dim cryRpt As New RptUsers()
cryRpt.Load("C:\Users\Sonia\Desktop\OnlineExamination\OnlineExamination\RptUsers.rpt")
CrystalReportViewer1.ReportSource = cryRpt
End Sub
End Class
Code:
Invalid Report Source