I have an application that uses a DataEnvironment and MSReports in a
I keep all the connection strings in an INI file so that when I deploy the
program I can change the INI file to connect to different servers with
different names, passwords, etc. I can't seem to do this.
Everything works ok when I work locally but when I create a distributuion
package and deploy to the actual location it seems that I cannot change the
connectionString. When I execute the program on the destination machine it
throws an error "Invalid Data Source".
When I run the code locally in debug mode it seems like I can't really
change the connection string the way I thought I could.
Here is what I am trying to do:
Private Sub DataEnvironment_Initialize()
deKLIF.KLIF.connectionString = csReports <-- This line doesnt work
I am picking up the csReports value from the INI file but it doesnt seem to
"take". When I do it in debug mode locally the value of
deKLIF.KLIF.connectionString is the same before and after the assignment.
The value is the value that I use locally and I cant seem to change it.
Principal Computer Scientist
Jorge Scientific Corporation
104 Park Drive
Warner Robins, GA 31088
Voice: (478) 923-2662
FAX: (478) 923-5625