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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

send chart to clipboard

Thread ID:

Created:

Updated:

Platform:

Replies:

119199 May 21,2015 12:26 PM UTC May 25,2015 12:58 PM UTC WPF 3
loading
Tags: SfChart
Herbert Moroni Cavallari de Costa Gois
Asked On May 21, 2015 12:26 PM UTC

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!


Satheesh Kumar T [Syncfusion]
Replied On 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

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

Thank you!!

Suresh S [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;