I'm trying to programmatically open a existing Telerik Report, change the connection string, pass-in the paramaters, and export it to PDF. I am able to open the report, pass parameters, and export successfully but I'm having an issue with changing the connection at runtime. I've seen several examples in the forum that show how to cast the DataSource of the Report object to it's appropriate type (in this case SqlDataSource), and then set the ConnectionString of that DataSource to what you want it to be. This does not work for me, as the DataSource is set to Nothing (I'm using VB.NET) when I open the file (or instantiate the Visual Studio class).
I've tried this with both a TRDX file and with a Visual Studio file/class, both have the same problem. Any ideas why this isn't working for me?
I've tried this with both a TRDX file and with a Visual Studio file/class, both have the same problem. Any ideas why this isn't working for me?