Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Changing report datasource at runtime

$
0
0

In advance, I've read all of the posts on here about dynamically changing the datasource for your report at runtime and none of it seems to work.

 

I developed a report against my development database using an ODBC connection. At runtime I want to pull the data from the production database. I've tried clearing the DataSourceConnections. I've tried the SetDatabaseLogon as well as Table.LogOnInfo, Table.ApplyLogOnInfo, SetConnection, everything. When I SetDataSource and feed in my DataSet, it's still the development database data. I've switched connection strings back and forth between the development and production databases and verified that the DataSet is being populated with the correct data.

 

Anyone have any ideas? I'm using Visual Studio 2010 and Crystal Reports 2011.

 

Thanks, in advance for any help you can give.


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>