Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27474

VS 2005 Call Crystal Report on form + Invalid Report Sorce

$
0
0
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 : -
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

When I run the form, I am getting the Error on Button Click : -
Code:

Invalid Report Source

Viewing all articles
Browse latest Browse all 27474

Trending Articles



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