How to copy a chart image from a Silverlight application to the clipboard?

I have Silverlight 3.0 applications with some custom graphs and some graphs. I need to find a better way to transfer these graphics to a PowerPoint presentation.

I read that Silverlight 4.0 offers a clipboard API, but there is only support for Unicode text, not images.

Is there a way to achieve this goal without forcing users to manually PrtScinsert them into other applications?

+3
source share
2 answers

SL3 . , WriteableBitmap IsolStorage, FileSave, ( PowerPoint). SL3 , , PNG JPG. , PrtSc, Ctrl + P .

SL4 - SLOOB. AutomationFactory PowerPoint.

+2

True = HtmlPage.IsPopupWindowAllowed Then
HtmlPage.PopupWindow( Uri ( " http://www.yourdomain.com/chartgenerator.ashx?param1=value1¶m2=value2" ), "", )
End If

chartgenerator.aspx :

' ,

context.Response.AddHeader( "Content-Disposition", "inline; filename =" FilenameWithExt)

"", ", ":

' ,

context.Response.AddHeader( "Content-Disposition", "attachment; filename =" FilenameWithExt)

http://vbcity.com/blogs/mike-mcintyre/archive/2010/02/28/silverlight-3-pop-up-new-browser-window.aspx

+1

Source: https://habr.com/ru/post/1744743/


All Articles