Thulasiram pakala

Thulasiram pakala

  • 907
  • 872
  • 115.2k

SSrs Report 2010

Jul 12 2019 7:14 AM
HI
 
in server i got this error
 
An error occurred during local report processing.
The definition of the report 'RDLC/DrugwiseConsolidatedReport.rdlc' is invalid.
The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.
 
i am binding like this way but showing error like this
dt = GetData(drugcode);
if (dt.Rows.Count > 0)
{
rptdrgconsolidate.Reset();
rptdrgconsolidate.ProcessingMode = ProcessingMode.Local;
ReportDataSource DS = new ReportDataSource("Drugwiseconsolidatedrpt", dt);
rptdrgconsolidate.LocalReport.DataSources.Clear();
ReportParameter[] parms = new ReportParameter[1];
parms[0] = new ReportParameter("@drgcd", drugcode);
rptdrgconsolidate.ServerReport.Refresh();
rptdrgconsolidate.LocalReport.DataSources.Add(DS);
rptdrgconsolidate.LocalReport.ReportPath = "RDLC/DrugwiseConsolidatedReport.rdlc";
rptdrgconsolidate.LocalReport.Refresh();
}
 
localy its working fine

Answers (2)