Change DataSource and Database Type Programmatically

Stimulsoft Reports.NET discussion
Post Reply
sarribas
Posts: 2
Joined: Wed Apr 09, 2008 3:06 pm
Location: san rafael

Change DataSource and Database Type Programmatically

Post by sarribas »

Hi:


Is there a way to change programmatically the datasource and database type, for example, from StiSqlDatabase to StiMySqlDatabase? We are developing an application with Nhibernate.

Regards

Sebastián Arribas
Powersolution
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Change DataSource and Database Type Programmatically

Post by Edward »

Yes, it is possible.

If you open a mrt file which is used for storing of the report template, then you find out that it has an xml structure. Simply change the name of the appropriate types and another type of DataBase/DataSources will be used.

Thank you.
sarribas
Posts: 2
Joined: Wed Apr 09, 2008 3:06 pm
Location: san rafael

Change DataSource and Database Type Programmatically

Post by sarribas »

Thank you for your quick answer!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Change DataSource and Database Type Programmatically

Post by Edward »

Let us know if any help is required.

Thank you.
Post Reply