RadChart Exception IndexOutOfRangeException using Telerik Version 2011.3.1116.1040

2 posts, 0 answers
  1. Fanindra
    Fanindra avatar
    4 posts
    Member since:
    May 2013

    Posted 12 Jan 2015 Link to this post

    We are facing issue while exporting RadChart to Image Using 

    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.

  2. Petar Marchev
    Petar Marchev avatar
    968 posts

    Posted 13 Jan 2015 Link to this post

    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?

    Petar Marchev

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top