Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Can ReportViewer use NeedDataSource?

$
0
0

Thank you! I believe I'm very close to having my project working. I'm able to get a report to run through my WebAPI service and ASP.NET page, but only if the datasource is set within the report. If I strip it out and try to set in my custom resolver, then I get:

An error has occurred while processing Table 'table1':
ExecuteReader: CommandText property has not been initialized

I have checked through the debugger and I am in fact changing the DataSource on table1, before the ReportInstance is assigned to Telerik.Reporting.InstanceReportSource.ReportDocument. When the same connection string is set within the report and I skip the reassignment steps in the resolver, the report runs perfectly. If I set the table to have no DataSource within the report, and attempt to modify it in the Resolver, the report comes up empty, but without error.


Viewing all articles
Browse latest Browse all 99250

Latest Images

Trending Articles



Latest Images

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