This is a migrated thread and some comments may be shown as answers.

RadChart Exception IndexOutOfRangeException using Telerik Version 2011.3.1116.1040

1 Answer 38 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Fanindra
Top achievements
Rank 1
Fanindra asked on 13 Jan 2015, 05:10 AM
We are facing issue while exporting RadChart to Image Using 
 this.rdChartGraph.ExportToImage(isoStream);

The stack trace is follows:

at Telerik.Windows.Media.Imaging.Zip.DeflateManager.Tally(Int32 dist, Int32 lc)
   at Telerik.Windows.Media.Imaging.Zip.DeflateManager.ProcessSlowDeflate(Int32 flush, Int32& num)
   at Telerik.Windows.Media.Imaging.Zip.DeflateManager.SlowDeflate(Int32 flush)
   at Telerik.Windows.Media.Imaging.Zip.DeflateManager.Deflate(ZipBaseStream strm, Int32 flush)
   at Telerik.Windows.Media.Imaging.Zip.ZipBaseStream.Deflate(Int32 flush)
   at Telerik.Windows.Media.Imaging.Zip.ZipOutputStream.FinishWriting()
   at Telerik.Windows.Media.Imaging.Zip.ZipOutputStream.Close()
   at System.IO.Stream.Dispose()
   at Telerik.Windows.Media.Imaging.PngBitmapEncoder.WriteDataChunks()
   at Telerik.Windows.Media.Imaging.PngBitmapEncoder.Encode(WriteableBitmap image)
   at Telerik.Windows.Media.Imaging.PngBitmapEncoder.Save(Stream stream)
   at Telerik.Windows.Media.Imaging.ImageExporter.Export(FrameworkElement element, Stream stream, BitmapEncoder encoder)
   at Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(FrameworkElement element, Stream stream, BitmapEncoder encoder)
   at Telerik.Windows.Controls.RadChart.ExportToImage(Stream stream)

Your prompt help would be appreciated.

Thanks.
Fanindra

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 13 Jan 2015, 09:36 AM
Hello Fanindra,

For the past three years we have focused our efforts towards the new RadChartView. It resolves many of the limitations that the old chart had. I suggest you upgrade to the latest version of our control and completely remove the Charting.dll reference and use the new Chart.dll with the new chart view.

I created a small project with a simple chart and an export button. The chart gets exported correctly on the click of the button. Can you modify the project to reproduce the exception and send it back to us for investigation? Also can share with us how did you encounter this problem? You are using assemblies from 2011, did you get the exception just now after updating your application or did you just start using our controls?

Regards,
Petar Marchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Fanindra
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or