Programatically Changing Database Name for Report 
Author Message
 Programatically Changing Database Name for Report

Hi There

Unfortunately I am still working with VS 4.6 but cannot afford to upgrade just yet.  What I want to do is programatically use a report whose database file name has been changed.  I  know it can be done through CR directly, but I need to make the same report transparent to a database file that has different names.  The data structure, fields, tables ect remain unchanged.

I am beginning to believe that my version just wont allow this to be done.  However, I was wondering if anyone who is using a later version could post a short basic code line as an example so I can determine if I can program any work-arounds for my earlier version.

Thanks



Tue, 30 Aug 2005 22:22:02 GMT  
 Programatically Changing Database Name for Report

Hi Bruce,
    I'm not sure if this can be done.  I did think of another possibility, which I'm not sure will work either.  If you base your report on an a DSN, you can change the database to which the DSN points, without having to change your report.  I think that you can even do this through code.  This may not be an acceptable solution, but I hope it's of some help.

Bob Holmes

  Hi There

  Unfortunately I am still working with VS 4.6 but cannot afford to upgrade just yet.  What I want to do is programatically use a report whose database file name has been changed.  I  know it can be done through CR directly, but I need to make the same report transparent to a database file that has different names.  The data structure, fields, tables ect remain unchanged.

  I am beginning to believe that my version just wont allow this to be done.  However, I was wondering if anyone who is using a later version could post a short basic code line as an example so I can determine if I can program any work-arounds for my earlier version.

  Thanks



Tue, 30 Aug 2005 22:48:46 GMT  
 Programatically Changing Database Name for Report
Thank you.  That confirms my suspician.  No wonder I couldn't find anything
on it in the Microsoft or CR Knowledge base.  I will do some redesigning
instead.

Thanks again.



Wed, 31 Aug 2005 02:29:48 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. crystal reports and how to change the database name

2. changing databases in odbc doesnt change database in report

3. Programatically Change NetBios Machine Name

4. Programatically Change Machine Name

5. Changing a report that uses 1 database into a report using 2 databases

6. Changing ODBC reports to OLE DB programatically...

7. Crystal Reports: Change the name of the report tab

8. changing report name of a MAPI exported report

9. Programatically change Table links in Access 97 database

10. Programatically changing referential integrity in an Access database.

11. Changing control name of button doesn't change event name to be the same

12. Crystal Report Data Connection (Name Change)

 

 
Powered by phpBB® Forum Software