Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Reportviewer issues

$
0
0

Hi Team

I am using Report viewer from Microsoft.ReportViewer.WebForms assembly version 11.0.0.0. Issue here is when we are setting a datasource with special character or space then Reportviewer is giving the following error. as the dataset is not cls complaint. Can you please help me in skipping the cls compalince issue with dataset that is being passed to Report viewer.

The definition of the report '' is invalid. A field in the dataset ‘reportdataset’ has the name ‘DATAENTRYCurHrsUnits$Amt’. Field names must be CLS-compliant identifiers"

DataTable reportdata = ReadDataRAS("reportdata");

System.Data.DataSet reportDataSet = new System.Data.DataSet("reportdataset");

reportDataSet.Tables.Add(reportdata);

Rdlc report =newRdlc(reportDataSet);

ReportViewer1.LocalReport.DataSources.Add(newReportDataSource(reportDataSet.DataSetName, reportdata));

ReportViewer1.LocalReport.LoadReportDefinition(report.GetRdlcStream());

this.ReportViewer1.LocalReport.Refresh();

Regards

Sudeep


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>