Getting Error while showing the report

Stimulsoft Reports.NET discussion
Post Reply
shaoun1000
Posts: 4
Joined: Sat Mar 12, 2011 2:46 am
Location: Bangladesh

Getting Error while showing the report

Post by shaoun1000 »

Hi,
I have a table with 7 columns. One column name is Class. It works fine with my gridview and Crystal Reports. But Stimulsoft report is showing error message. It seems to me that the Class column is creating the problem. How i can resolve it? The exception details:

System.Exception: C:\Documents and Settings\Shaoun\Local Settings\Temp\sxpfbnmw.0.vb(573,0) : error BC30183: Keyword is not valid as an identifier.C:\Documents and Settings\Shaoun\Local Settings\Temp\sxpfbnmw.0.vb(625,0) : error BC30183: Keyword is not valid as an identifier.C:\Documents and Settings\Shaoun\Local Settings\Temp\sxpfbnmw.0.vb(701,0) : error BC30183: Keyword is not valid as an identifier.C:\Documents and Settings\Shaoun\Local Settings\Temp\sxpfbnmw.0.vb(777,0) : error BC30183: Keyword is not valid as an identifier.C:\Documents and Settings\Shaoun\Local Settings\Temp\sxpfbnmw.0.vb(835,0) : error BC30183: Keyword is not valid as an identifier.
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile()
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Show(Form parentForm, IWin32Window win32Window, Boolean dialogForm)
at Stimulsoft.Report.StiReport.Show()
at LandManagement.Prottapon.ButtonX2_Click(Object sender, EventArgs e) in C:\Documents and Settings\Shaoun\My Documents\Visual Studio 2005\Projects\LandManagementNew\LandManagement\Prottapon.vb:line 55
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevComponents.DotNetBar.ButtonX.OnClick(EventArgs e)
at DevComponents.DotNetBar.ButtonX.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevComponents.DotNetBar.PopupItemControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
shaoun1000
Posts: 4
Joined: Sat Mar 12, 2011 2:46 am
Location: Bangladesh

Getting Error while showing the report

Post by shaoun1000 »

Any workaround for me?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Getting Error while showing the report

Post by Alex K. »

Hello,

Sorry, but in the designer, it is not possible to use keywords (in this case "Class").

Thank you.
shaoun1000
Posts: 4
Joined: Sat Mar 12, 2011 2:46 am
Location: Bangladesh

Getting Error while showing the report

Post by shaoun1000 »

My column name is class. Is it possible to use it through code? Or what is the way of using these types of keywords?

Thanks in advance.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Getting Error while showing the report

Post by Alex K. »

Hello,

Unfortunately, using keywords is not admissible.
You can either rename this column, or, in the designer, set an Alias to it, and set the "Uses Aliases" option.

Thank you.
Post Reply