How do you use ReportViewer to display a Reporting Services report?

I have a Reporting Services report that I need to display in an
ASP.NET web page using the ReportViewer. However I can't link the
Reporting Services report (.rdl) to the ReportViewer! I have the
ReportViewer.LocalReport.ReportPath set to the path of the .rdl report
but the report still dosen't display.

Advertisements

I may miss some steps here, but I'll come as close as I can, from the top of
my head.
It's not as simple as just copying the files -
First - you need to rename the .rdl file to .rdlc
You'll need to create the datasets in your ASP.Net application also
Also - if you're using parameters, you will need to create the controls in
the page, separately, and then use an event of some sort (button, etc) to
trigger running the report

I just copied some code here:
(this is for use with 2 date text parameters - you'll need to make the
reportviewer invisible at the start, then, when executing the code
Dim dsSource As ReportDataSource = New
ReportDataSource("DataSetName_DataTableName", MethodName(txtStartDate.Text,
txtEndDate.Text))

"S_K" <> wrote in message
news:...
> Hi and thanks in advance for your help.
>
> I have a Reporting Services report that I need to display in an
> ASP.NET web page using the ReportViewer. However I can't link the
> Reporting Services report (.rdl) to the ReportViewer! I have the
> ReportViewer.LocalReport.ReportPath set to the path of the .rdl report
> but the report still dosen't display.
>
> Can somebody help me on this?
>
> Thanks
>
> Steve

"S_K" <> wrote in message
news:...
> Hi and thanks in advance for your help.
>
> I have a Reporting Services report that I need to display in an
> ASP.NET web page using the ReportViewer. However I can't link the
> Reporting Services report (.rdl) to the ReportViewer! I have the
> ReportViewer.LocalReport.ReportPath set to the path of the .rdl report
> but the report still dosen't display.
>
> Can somebody help me on this?
>
> Thanks
>
> Steve

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!