Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Source Locations

Status
Not open for further replies.

ptMarke

Programmer
Aug 16, 2001
4
AU
I have a problem here guys I cant seem to think of a way to get around.

I have a set of sample data I use for development, and it is accessed via odbc. I use an ODBC driver for a database format called Topspeed. It stores databases as files. The development data for example is placed in a folder called C:\DEVDATA.

However, when installed by a client my program (which uses the Crystal ActiveX control for CR interface), and hence data can be stored in any number of locations. The problem is that Crystal Reports is remembering the physical file system location of the database files from the developement data location.

In Crystal Reports Designer (crw32.exe) I can get around this by using the Database -> Set Location facility to reselect my odbc table if the location the driver points to on the file system has changed. This then changes the CR properly and it uses the new data location. If i do not perform this operation, that change is not taken on board by CR automatically, and it tries to use data in the old location stored in the report file. It doesn't seem to query the ODBC driver for the location.

Is there any way using the ActiveX control, to automatically set the location of the databases (via odbc) that a report uses?

Regards,

Mark

Mark Allanson
Software Developer
PalmTEQ Limited

Mark Allanson
Software Developer
PalmTEQ Limited
 
Hi,

Is the database name included all you tables selected in the set location tab?

If so, you can delete the database name, and just leave the tablenames. This should then work for any ODBC link with the same name.

Geoff
 
When I select a table in the top section of the Set Location form, the bottom section of the form has the following information.

Table: CLERKS
Server Type: ODBC - SalesAnalyst
Server Name: SalesAnalyst
Database: c:\DEVDATAUser ID: <BLANK>

are you saying that I can get rid of the Database: field above? only the first field is editable. If so, how do i do this?

Mark
Mark Allanson
Software Developer
PalmTEQ Limited
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top