how do i add a crystal report to a form and allow a user to review it vb .net 2008 sql 2005
Posted on 2011-02-18
I have added a crystal report to a form. But all it does is display and then go away all in 1 or 2 seconds
I need to allow an user to review the report.
I have visual studio 2008
Crystal reports ver 11
Here is the code I have so far.
Private Sub btnCrystalReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCrystalReport.Click
Dim cryRpt As New ReportDocument
CrystalReportViewer1.ReportSource = cryRpt