Last post Jun 04, 2015 06:59 AM by sudeepvajrala
Jun 02, 2015 04:53 AM|sudeepvajrala|LINK
I am using Report viewer from Microsoft.ReportViewer.WebForms assembly version 220.127.116.11. 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");
= new System.Data.DataSet("reportdataset");
Rdlc report =
Jun 02, 2015 07:45 AM|Lokesh B R|LINK
Create an ALIAS in XSD File or Rename the column name in data set.
Jun 04, 2015 06:48 AM|sudeepvajrala|LINK
Thanks for your reply, can you please help me how to create alias. I donot have option to rename the field
Jun 04, 2015 06:50 AM|Lokesh B R|LINK
do you have XSD file?
Jun 04, 2015 06:54 AM|sudeepvajrala|LINK
No I dont, I am using Report viewer and supplying it a Dataset. If the dataset have the spaces or special chars in the columns names getting the cls compaince issue.
Jun 04, 2015 06:57 AM|Lokesh B R|LINK
You can't have the special characters / space in column names. So change the column name and try.
Create an ALIAS Names for columns in SQL query and try
Jun 04, 2015 06:59 AM|sudeepvajrala|LINK
Changing the column names works, but I need to suppress the cls compaince issue somehow so that I can display it as it is in the Report viewer header.