ey i have following code for crystal report 8.5 to vb6...
i just want to change database location of report from vb code...
Private Sub Form_Load()
Dim Reportapp As New CRAXDDRT.Application
Dim Report As CRAXDDRT.Report
Set Report = Reportapp.OpenReport(App.Path & "\orders.rpt")
Report.Database.SetDataSource App.Path & "\RatanDB.mdb"
CRViewer2.ReportSource = Report
CRViewer2.ViewReport
CRViewer2.Zoom (100)
End Sub
the setdatasource is not working, its going in it's default location...
i want it to search in -->> App.path & "\RatanDB.mdb"
can any one help me, its urgent please tank you... :)