Page 1 of 1

CopyToClipboard

Posted: Fri Nov 30, 2007 8:22 pm
by 9792387
TeeChart V3.2.2868.26903
Visual Basic 2005 Express Edition

When I use the CopyToClipboard function in my code and then Paste into another application such as Paint or Excel, I get a blue rectangle that is the size of the chart. If I try to use the Export page in a ChartController Edit control, I get an "Object reference net set to an instance of an object" error.

Steps to reproduce:
Create new VB Application. Add TChart and ChartController objects. Set ChartController1.Chart to TChart1. Add a button with the following code:

Code: Select all

TChart1.Export.Image.JPEG.CopyToClipboard()
Run the program, click on the Edit button in the ChartController bar. Click on Export, choose as JPEG, click the Copy button. The error listed above appears. Run the program again, click the button you added, switch to Paint (or some other program), and Paste. A blue rectangle is pasted.

Jay

Posted: Mon Dec 03, 2007 11:21 am
by narcis
Hi Jay,

Thanks for the information. I've been able to reproduce the issues here using v3.2.2868.26903 but they have been fixed in our current sources so you can expect them being fixed in the next maintenance release due to be out very soon.

Please be aware at this forum or our RSS feed for new release announcements.

Thanks in advance.