Using Crystal Reports, mySQL, Visual Studio 2010 with change in database at runtime
Can someone please explain to me how to use crystal reports with mySQL on visual studio? The problem I have is that all the runtime servers are different from the design time servers. The structures of the databases are the same though. So what I need is to design a crystal report using a connection then change that connection on the clients computer.
Sam HobbsPosted Aug 24, 2011, 11:46 AM
patrickPosted Aug 24, 2011, 9:05 AM
So my original issue was trying to get the mysql database to load data into a crystal report using the same connection string that the rest of the program uses, which is always specified by the client settings.
What I have done so far to make progress was to set up and ODBC connection (which i never used in the program before) on my computer and matching ones on the client computers using windows admininstrator tools -> data sources.
So, essentially, my current issue comes down to this: how can I let the user choose an ODBC connection at runtime to ensure they are not having an issue connecting to their database?
Like I said, I've never used crystal reports or the mySQL ODBC connector before, I have always just connected with code, so let me know if I am going in the wrong direction.
Sam HobbsPosted Aug 23, 2011, 8:16 PM
patrickPosted Aug 23, 2011, 6:45 PM
http://www.codeproject.com/KB/database/MySQLCrystal.aspx in this article it gives instructions on how to connect to a dataSet, but wouldn't I have to reload that on the client computer everytime?
Would it be easier if I set up a windows ODBC connection using the mySQL driver and connected to that?
Sam HobbsPosted Aug 21, 2011, 11:00 PM
Gomathi PalaniswamyPosted Aug 20, 2011, 10:18 AM
http://social.msdn.microsoft.com/Forums/en-AU/vscrystalreports/thread/c4782911-8bfb-43f8-8206-3e523eff4b6a