changing .mdb path in crystal report using vb 4.0 
Author Message
 changing .mdb path in crystal report using vb 4.0

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



Sun, 27 Jun 1999 03:00:00 GMT  
 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



Mon, 28 Jun 1999 03:00:00 GMT  
 changing .mdb path in crystal report using vb 4.0

I never assume that the data path is the same, in fact I always store the
data path to the Access databases in the registry. Then it's a simple
matter to pass this value to CrytalReport1.DataFiles(0).



Mon, 28 Jun 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. changing .mdb path in crystal report using vb 4.0

2. .mdb file path in crystal report

3. Using the dreaded Crystal Reports w/VB 4.0

4. Exporting to HTML using the Version of Crystal Reports that Comes with VB 4.0 Pro

5. Using Secured *.mdb's with Crystal Reports

6. Help: attaching Btrieve-table in Access mdb using VB 4.0 16-bit

7. Using a Grant Total with Crystal Reports 4.0 - gt.txt [1/1]

8. Crystal Report: DB Path manipulation in VB code

9. Crystal Reports - relative path in report file name

10. Crystal Reports ANd VB 6.0 Printing reports using CRPEAUTO Object, specifying paper orientation problem

11. Printing report from Dynaset using Crystal Report and VB

12. Change mdb path

 

 
Powered by phpBB® Forum Software