Skip to Content

How to set Datasource pointing to multiple Database at the time crystal report creation

Sep 12, 2017 at 03:16 PM


avatar image
Former Member

I need to create a crystal report and have to set Datasource location pointing to Development, Testing and Production servers. The created crystal report will be placed in database table and fetched at the time of reposrt generation by passing the credentials(Development or production).But whatever Datasource given at the time of creation it is pointing to that only cant able to change the datasource through the code. Please help me in this I need a crystal report generated with multiple datasource connection.

In C# I have written code as shown below:

oReport.SetDatabaseLogon(gcUser, gcPassword, gcDB, gcDB);
 oReport.DataSourceConnections[0].SetLogon(gcUser, gcPassword);
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Don Williams
Sep 12, 2017 at 03:18 PM

On the Download page WIKI use this test app to set location in code as an example:


10 |10000 characters needed characters left characters exceeded