Hi guys!

Can, please anyone tell me, how do set Database to Dataenvironment in code rather then by properties?

The problem is, that I have a Datareport with Data environment and the connection to the Database is made in its properties. When I'll deploy my App I don't know if it will be in the same folder as it is on my PC.

I was thinking something about like: Dataenvironment1.databasename=App.Path & "\MyDataBase"

If it's possible, please DO help me.

God bless you all! Ales