How to convert rad controls to images in silverlight

1 posts, 0 answers
  1. Dinesh
    Dinesh avatar
    9 posts
    Member since:
    Nov 2012

    Posted 11 Feb 2013 Link to this post


    I'm using rad controls(charts and gridview) for developing an application,which i need to export the controls(each) into image.I have tried each control converting them into bytes format and send to webservice and converting them to images but sometime sending the byte data to service throws an error.Is any other way to convert each control into image.I have tried another way like.

        Stream fileStream = File.OpenRead(@"\\HARAVEER-PC\TempImages\FlashPivot.png");
    
            //PART 2 - use the stream to write the file output.
            productChart.ExportToImage(fileStream, new Telerik.Windows.Media.Imaging.PngBitmapEncoder());
            fileStream.Close();

     

    It throwing me an error like cannot access to the folder TempImages.I have given sharing permissions to everyone but it doesn't access the folder.

    I Just need Exporting Radgridview to image and also RadChart.

    Any solution is much appreciated.

Back to Top