i have created my report in crystal Report 11.
I want my user to view that report by my
vb.net application
through a command button.
How should I do that?
What will be code to view the report.
I am using Crystal Report viewer in Microsoft.net Framework 1.0 app.
Here are my code:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared
Imports System
Imports System.ComponentModel
Private Sub cmdReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdReport.Click
CrystalReportViewer1.ReportSource = C:\ActiveEmp.rpt"
'Here before printing, I want the user to view it.
CrystalReportViewer1.PrintReport()
End Sub
Any help will greatly appreciated
Thanks,
Sgupta