CopyToClipboard
Posted: Fri Nov 30, 2007 8:22 pm
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:
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
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()
Jay