Hello.
Create a sample 2 series bar chart.
Change one of the series to Side-All sub-type in chart editor.
"Index was outside the bounds of the array" exception is thrown and the chart is gone.
The same effect is when you try to change sub-type at runtime (using series.SetSubGallery(10) for instance).
regards, Adam
Side All bar chart bug
Re: Side All bar chart bug
Hello Adam,
I can not reproduce the problem here, could you send your project or a simple code, where we can reproduce your problem ?
Thanks,
I can not reproduce the problem here, could you send your project or a simple code, where we can reproduce your problem ?
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Side All bar chart bug
Everything works fine with a sample code that I created, so maybe it is my bug.
But the exception that I get is strange and points me to TeeChart library:
Index was outside the bounds of the array. System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Steema.TeeChart.Styles.ValueList.get_Item(Int32 index)
at Steema.TeeChart.Styles.CustomBar.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.DoDrawIndex(Int32 Index, Boolean CanID)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.DrawAllSeries(Graphics3D g)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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)
Maybe some special settings of my actual chart and series causes the problem. I use WinForms component in WPF application (WindowsFormsHost).
I will still try to create sample code that would produce this exception.
But maybe exception details above will help you to investigate the problem on your side...
regards, Adam
But the exception that I get is strange and points me to TeeChart library:
Index was outside the bounds of the array. System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Steema.TeeChart.Styles.ValueList.get_Item(Int32 index)
at Steema.TeeChart.Styles.CustomBar.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.DoDrawIndex(Int32 Index, Boolean CanID)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.DrawAllSeries(Graphics3D g)
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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)
Maybe some special settings of my actual chart and series causes the problem. I use WinForms component in WPF application (WindowsFormsHost).
I will still try to create sample code that would produce this exception.
But maybe exception details above will help you to investigate the problem on your side...
regards, Adam
Re: Side All bar chart bug
Hello Adam,
I would be very grateful if you can send us your project, because we can detect your problem and try to help you to solve it.
Thanks,
I would be very grateful if you can send us your project, because we can detect your problem and try to help you to solve it.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |