_ charecter in db column name

_ charecter in db column name

Forum member · Feb 7, 2007
Hi, I received an error creating a report when the column name in the database has an underscore in it. i ran the report by copying the sample c# code: DocumentLayout report = new DocumentLayout(textBoxReport.Text); MyDocument document = report.Run() as MyDocument; document.Draw(textBoxReport.Text + ".pdf"); the error message indexoutofrange exception. once i changed the column name and updated the dplx file accordingly it worked fine.

Re: _ charecter in db column name

Support · Feb 7, 2007
Hello, Thanks for the information. In our preliminary tests we were also able to recreate the behavior just as you described. We are currently looking into what is the exact cause of this and if there is any workaround for now. As soon as we have something we will post it here. Thanks, ceTe Software Support Team.

Re: _ charecter in db column name

Support · Feb 19, 2007
Hello, You will have to use the column names with in the square brackets in order to use the column names of a table having "_" in it, like [Column_Name]. This will work fine without any errors. Thanks, ceTe Software Support Team.