When I run this I do not get errors but no report displays either. Also if I choose a report that requires a paramter then the parameter screen will display but when I hit OK the report again does not display...I can't figure this out. Any help would be great.
Here is my code:
Dim crysApp As New craxdrt.Application
Dim selectedreport As String
Dim myRpt As craxdrt.Report
selectedreport = "\\Cmnt2\depot\CCRPoms\project\visbasic\test.rpt"
Set myRpt = crysApp.OpenReport(selectedreport)
CRViewer1.ReportSource = myRpt
CRViewer1.ViewReport
Here is my code:
Dim crysApp As New craxdrt.Application
Dim selectedreport As String
Dim myRpt As craxdrt.Report
selectedreport = "\\Cmnt2\depot\CCRPoms\project\visbasic\test.rpt"
Set myRpt = crysApp.OpenReport(selectedreport)
CRViewer1.ReportSource = myRpt
CRViewer1.ViewReport