Not able to copy to clipboard using Width and Height

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
lukoprovandrey
Posts: 29
Joined: Fri Sep 04, 2015 2:30 pm

Not able to copy to clipboard using Width and Height

Post by lukoprovandrey » Mon Sep 19, 2016 9:05 am

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.
Attachments
11111.png
11111.png (7.47 KiB) Viewed 10396 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

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

Post by ArctionPasi » Wed Sep 21, 2016 9:09 am

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.
LightningChart Support Team, PT

lukoprovandrey
Posts: 29
Joined: Fri Sep 04, 2015 2:30 pm

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

Post by lukoprovandrey » Wed Sep 21, 2016 9:27 am

It works, thanks.

Post Reply