Groups | Blog | Home
all groups > c# > june 2007 >

c# : Getting Error Using Report Viewer(SSRS) with Ajax


Gyanendra
6/13/2007 10:49:01 PM
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 “

“

Michael Nemtsev
6/14/2007 12:00:00 AM
Hello Gyanendra,

Maybe this help http://forums.asp.net/t/1115826.aspx


---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

G> Report Viewer
G>

Gyanendra
6/14/2007 7:51:07 AM
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

[quoted text, click to view]
AddThis Social Bookmark Button