
changing .mdb path in crystal report using vb 4.0
In the code to print your report, add the followinf before you invoke
printing:
Report1.DataFiles(x) = db$
Where x is a number starting at 0 and incremented for each table in your
report and db$ is a string containing the full path to the database.
You need to do this for each table you reference in your report.
===================================================
Quote:
> Hello,
> I have a following question : -
> A report is created in crystal report application which has "set
> location" defined where an access .mdb file is located.
> I save the file as test.rpt. I am also able to invoke this report by
> using the crystal report control in vb 4.0.
> I would like to know how can i define in vb 4.0 (before it uses test.rpt
> on the screen) to make sure the path where access .mdb is defined
> previously is correct. If not correct then how i can implement so it
> will know the correct path of an access .mdb file.
> Thanks in advance
> - Rehan