This is a really basic thing I know.. but I just can't do it.
I am using Visual Basic .Net.
I have a Crystal Report called creClubChamp.rpt. I used the wizard to create this and attached tables from an Access db located in the bin folder for the solution.
I have a Reports Menu form (frmReportsMenu.vb) which has a button on it (btnClubChampReport).
I just don't know how to combine them all to view the report? Do I need a CrystalReportViewer Control? If so, do I need one of these for each of my three reports, or is the one Viewer control used for all the reports in a solution?
I'm guessing that the btnClubChampReport_Click Event should do something like this:
Dim objViewClubChampReport As New creClubChamp.rpt
objViewClubChampReport.ShowDialog() (or print preview or something?)
What namespaces do I need to import? I currently have:
Option Strict On
Option Explicit On
Thanks for your help. I feel as though I'm halfway to understanding all this so if you can just help me understand the other half it would be appreciated!
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim oApp = New CRAXDRT.Application
Dim oReport As CRAXDRT.Report
oReport = oApp.OpenReport("C:\temp\reportname.R01.rpt", 1)