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

ExportExtensions.ExportToImage Sample Code

2 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rocky Fernandes
Top achievements
Rank 1
Rocky Fernandes asked on 19 Jan 2010, 05:47 PM
I searched the telerik web and couldn't find a demo code for the ExportExtensions.ExportToImage method other than the following links with no sample code. Can some one please provide me a sample code
http://www.telerik.com/help/wpf/telerik.windows.controls-telerik.windows.media.imaging.exportextensions-exporttoimage(frameworkelement,stream,double,double,bitmapencoder).html


http://www.telerik.com/community/forums/silverlight/general-discussions/exporting-as-bmp.aspx

2 Answers, 1 is accepted

Sort by
0
Rocky Fernandes
Top achievements
Rank 1
answered on 19 Jan 2010, 06:55 PM
Hi.

I got my code to work.

I added the reference Telerik.Windows.Controls. and then used the below function

 

Telerik.Windows.Media.Imaging.

ExportExtensions

 

.ExportToImage(LayoutRoot, fs, new Telerik.Windows.Media.Imaging.PngBitmapEncoder());

It works great and saves the image. But now the problem is once the image is saved the control just freezes up. The buttons and slider I have on the control is not clickable anymore. It just doesn't respond to any mouse click event. Any fix?

 

0
Accepted
Giuseppe
Telerik team
answered on 22 Jan 2010, 11:18 AM
Hello Rocky Fernandes,

Unfortunately we were not able to reproduce the problematic behavior in our local tests -- please review the attached sample application and let us know how we can observe the erroneous issue locally so we can advise you properly how to proceed.


Best wishes,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Rocky Fernandes
Top achievements
Rank 1
Answers by
Rocky Fernandes
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or