Page 1 of 1

change connection string of an mrt dataset from vb.net code

Posted: Wed Jun 17, 2009 5:11 am
by brillox
Hi,

I have designed a report based on a connection string of my locla SQL database; my problem is ... how can I change the connection string of the mrt dataset from the VB.Net code before moving the application on the productions erver ?

change connection string of an mrt dataset from vb.net code

Posted: Wed Jun 17, 2009 8:02 am
by Stephan1
Hi Brillox,

were using this piece of code for changing the Connection.

Dim sqlDB As Stimulsoft.Report.Dictionary.StiSqlDatabase
sqlDB = stireport1.Dictionary.Databases("Databasename_in_MRT")

If Not IsDBNull(sqlDB) Then
sqlDB.ConnectionString = constr
End If

Hope this helps,

Stephan