Microsoft ReportViewer - another project

A

abcd

I have VS 2008 solution in which there are 2 projects one for WebApp and
another for Business component (mainly data contract, service contract, and
message contract). All my business object model is in second project. I want
to create a Report based on the object model. So I created Report1.rdlc file
at project 2. Now I am creating one aspx page where report1.rdlc need to be
referred...

my questions

1. I dont see report1 in the reports when I add Microsoft Report Viewer
control in the page.
2. Am I on the right track to create the report at business component
project and use it at aspx page.

Any suggestions will be helpful...

I am novice to Microsoft Report Viewer control...

Thanks
 
P

Paul Shapiro

I am also a novice, but with a couple of reports working. Here is some code,
which might help you figure out how to organize your web project. The .rdlc
file has to be accessible on the web server. I seem to remember there was a
walk-through in the VS 2008 help.

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetData"
TypeName="SubmissionSummaryByDayTableAdapters.DataTableSubmissionsByDayTableAdapter">
</asp:ObjectDataSource>

<rsweb:ReportViewer ID="ReportViewerStatisticsByDay" runat="server"<LocalReport ReportPath="Admin\SubmissionSummary.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1"
Name="SubmissionSummaryByDay_DataTableSubmissionsByDay"
/>
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top