Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 VS 2005 ASPNET C# Report Viewer

Author  Topic 

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2007-01-15 : 10:02:16
I can't get my report to run, it is displaying this error

An error has occurred during report processing.
A data source instance has not been supplied for the data source "DataSet1_qViewAllCalls".

An example of "DataSet1_qViewAllCalls" will be appreciated thanks


private void RunLocal2()
{
try
{

ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = "Report/Report1.rdlc";
ReportViewer1.LocalReport.EnableHyperlinks = true;
ReportViewer1.LocalReport.EnableExternalImages = true;
ReportViewer1.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence);
ReportViewer1.LocalReport.AddTrustedCodeModuleInCurrentAppDomain("System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
ReportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("DataSet1_qViewAllCalls"));
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(ex.ToString());
throw ex;
}
finally
{
}
}

If it is that easy, everybody will be doing it
   

- Advertisement -