Page 1 of 1

Not able to copy to clipboard using Width and Height

Posted: Mon Sep 19, 2016 9:05 am
by lukoprovandrey
Hello guys.

I need to copy a chart to clipboard, for this I use the CopyToClipboard(ClipboardImageFormat imageFormat, int width, int height) method, but the method doesn't return any result.

If I use the CopyToClipboard() method, the method copies a picture to clipboard, but it does not appropriate for me (It stretched).

Could you help me with this?

P.S.:I little bit debug my code and found that I can't change size of a LightningChartUltimate object. Maybe it may help for you.

Re: Not able to copy to clipboard using Width and Height

Posted: Wed Sep 21, 2016 9:09 am
by ArctionPasi
Please update to newest 7.1.3.6 version. There has been fixes in the export routines.

chart.Width and Height only apply, if chart.Dock == None. Otherwise width and height are got from parent control.

Re: Not able to copy to clipboard using Width and Height

Posted: Wed Sep 21, 2016 9:27 am
by lukoprovandrey
It works, thanks.