Getting Error Using Report Viewer(SSRS) with Ajax

G

Guest

I am using Ajax control(Update Panel) in my web page(ASP.Net 2.0) and putting
Report Viewer(Sql Server Reporting Services 2005) Control in it.



When I am displaying any report it is coming ,But Report Viewer Toolbar is
not working Ex Print Command Button and if I try to move to next page I am
getting error “The source of the report definition has not been specified “

“

and this report is Server Report not LocalReport
 
G

Guest

This Code is Used to Display the Report..
and my code is fine
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
this.ReportViewer1.ServerReport.ReportServerUrl = new
System.Uri("http://rosbpdapp01/reportserver");

string strReportServerPath = "/STATSREPORTS/EMPReport";
this.ReportViewer1.ServerReport.ReportPath = strReportServerPath;
Microsoft.Reporting.WebForms.ReportParameter[] RptParameters = new
Microsoft.Reporting.WebForms.ReportParameter[2];
string strTime = dtDate;
strdtDate = strdtDate;
strTime = strTime;

RptParameters[0] = new
Microsoft.Reporting.WebForms.ReportParameter("dateFrom", strdtDate);
RptParameters[1] = new
Microsoft.Reporting.WebForms.ReportParameter("dateTo", strTime);
ReportViewer1.ServerReport.SetParameters(RptParameters);
ReportViewer1.ServerReport.Refresh();

No Problem is displaying report..Problem is after that when we try to move
to second page of the Report
 

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