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

How to convert rad controls to images in silverlight

0 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dinesh
Top achievements
Rank 1
Dinesh asked on 11 Feb 2013, 07:30 AM

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.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Dinesh
Top achievements
Rank 1
Share this question
or