We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

send chart to clipboard

Hello!

I'm trying copy the chart to clipboard... but the image sent is black/white

my code:
RenderTargetBitmap renderBitmap = new RenderTargetBitmap((int)Chart.ActualWidth, (int)Chart.ActualHeight, 96d, 96d, PixelFormats.Pbgra32);
            renderBitmap.Render(Chart);
            Clipboard.SetImage(renderBitmap);

when i paste it on Word the image stay black/white

Thanks!


3 Replies

SK Satheesh Kumar T Syncfusion Team May 22, 2015 03:16 PM UTC

Hi Herbert,

 

Thanks for using Syncfusion products.

 

We have analyzed your query and achieved your requirement by setting the Background property to the SfChart. Please find the sample attachment from the below link.


Thanks,

Satheesh Kumar T


Attachment: CopyToClipboardScenario_dc80a981.zip


HM Herbert Moroni Cavallari de Costa Gois May 24, 2015 02:06 PM UTC

Thank you!!


SS Suresh S Syncfusion Team May 25, 2015 12:58 PM UTC

Hi Herbert,
Thanks for reply
We are glad to know issue is resolved, please contact us in case of any assistance
Regards,
Suresh S


Loader.
Live Chat Icon For mobile
Up arrow icon