Question

I am working on .net framework 3.5 and using RDLC files for reporting in my project. Problem that I am facing is that in my Dataset I have a numerically named field "63" and whenever I am using it in my RDLC file its showing me this error

"A field in the dataset ‘DataSet1’ has the name ‘63’. Field names must be CLS-compliant identifiers."

I have already performed few things like.

1.) [assembly: CLSCompliantAttribute(false)]

in my project's assemblyInfo.cs

2.) and placing attribute name under square brackets. eg :[63] in my Dataset.

But all went futile any help will be appreciated Thank You

Was it helpful?

Solution

Ok, then try this.

  1. Open the xsd file.

  2. Right click on the table.

  3. Select configure.

  4. Assign an alias in the select statement.

  5. Update report.

This link might help u out

OTHER TIPS

Ok I got an answer for it. only thing that is to be done is to change the name of the variable like fro "63" to "a63". To turn the name alphanumeric.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top