setting location of data files in CrystalReport via Visual Basic 
Author Message
 setting location of data files in CrystalReport via Visual Basic

I wrote an application in Visual Basic (VB) version 5 which creates a
report via Crystal Reports (CR) version 6.  In VB I set

CrystalReport.DataFiles(0) = "c:\mydirectory\myfile.mdb"

If this is the same location as the database file when I desinged the
report in
CR report designer, everything works.  However, if I move the data file
to another location and set CrystalReport.DataFiles(0) accordingly, the
CR cannot find the datafile location when the application tries to
generate the
report.  (Although running CR and seting the data file location via the
Database menu fixes the problem, I think this should not be required.)
Is there something
else I have to do in the VB application for CR to recognize the location
specified
in CrystalReport.DataFiles(0)?

Ray Muzic



Tue, 18 Jul 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Set the Data Link File path in crystal report by Visual Basic coding

2. Accessing the IE4 proxy setting via Visual Basic or Scripting

3. Setting-up a Dial-Up Connection via Visual Basic

4. visual basic default Project Opening File Location

5. Word Perfect data via Visual Basic DDE

6. Data Acquisition via Visual Basic

7. Visual Basic / Access: attaching a result set to the data object

8. Accessing Borland dBase files via VISUAL BASIC

9. Accessing Borland dBase files via Visual Basic

10. Connecting to Access via Visual Basic via Internet

11. Making *.dll files via microsoft visual basic 6.0???

12. Export to HTML file from Crystal Reports via Visual Basic 5

 

 
Powered by phpBB® Forum Software