the_future21
07-28-2006, 10:12 AM
I am trying to add a SQL Server Report to an ASP.Net web application. I am using Visual Studio 2005 and ASP.Net 2.0. The steps I take to adding the report are:
1) I right click in the solution menu and go to add new item and pick report.
2) I create the Query that I would like to have for my report.
3) In the report i drop in a table and add the fields in which i would like to display.
4) go into the ASP.Net page i would like the report to be viewed in and put in a reportviewer and connect it to the report I just made.
When i try and view the site in a web browser i get the following error:
An error has occurred during report processing.
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.
this is the 1st time i am trying to create a report. if someone has a website w/ steps that would be great, or if you follow what i am trying to do and know what i am doing wrong and can anwser my question that would be great.
thanks you to any one who helps.
<rsweb:ReportViewer ID="ReportViewer1"
runat="server" Font-Names="Verdana" Font-Size="8pt" Height="407px" Width="829px">
<LocalReport ReportPath="App_Data\PrintReport.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1_Employee_Info" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
TypeName="DataSet1TableAdapters.Employee_InfoTableAdapter"></asp:ObjectDataSource>
1) I right click in the solution menu and go to add new item and pick report.
2) I create the Query that I would like to have for my report.
3) In the report i drop in a table and add the fields in which i would like to display.
4) go into the ASP.Net page i would like the report to be viewed in and put in a reportviewer and connect it to the report I just made.
When i try and view the site in a web browser i get the following error:
An error has occurred during report processing.
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.
this is the 1st time i am trying to create a report. if someone has a website w/ steps that would be great, or if you follow what i am trying to do and know what i am doing wrong and can anwser my question that would be great.
thanks you to any one who helps.
<rsweb:ReportViewer ID="ReportViewer1"
runat="server" Font-Names="Verdana" Font-Size="8pt" Height="407px" Width="829px">
<LocalReport ReportPath="App_Data\PrintReport.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1_Employee_Info" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
TypeName="DataSet1TableAdapters.Employee_InfoTableAdapter"></asp:ObjectDataSource>