Here is what someone else used to work around the problem:
-
Drop an ObjectDataSource on the form with the ReportViewer.
-
Configure the ODS to use the TableAdapter associated with the source DataSet.
-
In the Misc->LocalReport properties for the ReportViewer, select DataSources and click the ellipsis.
-
In the ReportDataSource Collection Editor, click the Add button.
-
In the properties for the new ReportDataSource, specify <DataSet>_<table> as the value for the Name property and the ID of the ODS as the value for the DataSourceId property.
This results in the following ObjectDataSource tag:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetData" TypeName="ReportViewerCrash.DataSet1TableAdapters.databasesTableAdapter">
</asp:ObjectDataSource>
And the following ReportViewer tag:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="400px" Width="400px">
<LocalReport ReportEmbeddedResource="ReportViewerCrash.Report1.rdlc" ReportPath="Report1.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1_databases" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
Hope this helps,
Brad.