Skip to Content
Feb 04, 2014 at 03:25 AM

Check Loaded Report for Data Source Name


VB 2010, CR 2011.

I am modifying a viewer that reports on a MySQL database and csv files. I can change the data source on my reports at runtime.

I allow the users to add their own reports to the program. The problem is that they do not always set the correct setting to indicate whether the report should run on the MySQL database or the csv files so they get errors.

I am trying to enhance the error checking and have been thinking that the best solution is for me to check the Data Source Name on the report and set which database the report should be run on.

I am using the Report Document, but can't find the Data Source Name.of the report.that I am loading. Can anyone point me in the right direction?

TIA, rasinc