Hi
I have created report in Microsoft Acccess. Normally my report and database reside in the same folder. Now i have to change that by calling the same report based on same Database that resides in another folde. Now my problem is how do i tell the report in Visual Basic application where to get data from.
I m using the folowing menthod
Dim mApp As New CRAXDDRT.Application
Dim mRep As New CRAXDDRT.Report
Set mApp = CreateObject("CrystalRuntime.Application"
Set mRep = mApp.OpenReport(App.Path & "\MyReportFile.rpt"
CRViewerControl.ReportSource = mRep
CRViewerControl.ViewReport
Now the report runs fine when the Database is in the same folder as the report. Now how do i run this report based on Database from another folder tell.
Can any body tell me how to do this. I have to change the Data source from withing my application.
Thanks
I have created report in Microsoft Acccess. Normally my report and database reside in the same folder. Now i have to change that by calling the same report based on same Database that resides in another folde. Now my problem is how do i tell the report in Visual Basic application where to get data from.
I m using the folowing menthod
Dim mApp As New CRAXDDRT.Application
Dim mRep As New CRAXDDRT.Report
Set mApp = CreateObject("CrystalRuntime.Application"
Set mRep = mApp.OpenReport(App.Path & "\MyReportFile.rpt"
CRViewerControl.ReportSource = mRep
CRViewerControl.ViewReport
Now the report runs fine when the Database is in the same folder as the report. Now how do i run this report based on Database from another folder tell.
Can any body tell me how to do this. I have to change the Data source from withing my application.
Thanks