Copy to Clipboard fails to use new chart dimensions
Posted: Fri Jan 18, 2008 8:45 pm
I have demonstrated an undesirable behavior when copying a chart image to clipboard.
I was able to reproduce the issue with the Program Files\Steema Software\TeeChart for .NET v3\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe in the Welcome !\Miscellaneous\Clipboard\Single Chart example.
The call to tChart1.Export.Image.Bitmap.CopyToClipboard();
works as expected the first time it is called. The problem comes when you resize the chart control. If you then try to copy to clipboard, the new size is not copied to the windows clipboard. The call produces an image that has the original size when you 1st copied to the clipboard. All attempts from that point result in the same sized image on the clipboard.
Steps to reproduce issue in the TeeChartNetExample:
1. Started the TeeChartNetExample application and make sure the application is NOT maximized.
2. Size the window so it is wider than it is tall
3. Pressed the Copy to Clipboard button
4. Paste into your favorite paintbrush type application
5. Now resize the window so it is taller than it is wide
6. Press the Copy to Clipboard button
7. Paste into your favorite paintbrush type application
8. Notice that the aspect of the image captured is not the current aspect of window. Instead it is still the original aspect used in step 2.
I was able to reproduce the issue with the Program Files\Steema Software\TeeChart for .NET v3\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe in the Welcome !\Miscellaneous\Clipboard\Single Chart example.
The call to tChart1.Export.Image.Bitmap.CopyToClipboard();
works as expected the first time it is called. The problem comes when you resize the chart control. If you then try to copy to clipboard, the new size is not copied to the windows clipboard. The call produces an image that has the original size when you 1st copied to the clipboard. All attempts from that point result in the same sized image on the clipboard.
Steps to reproduce issue in the TeeChartNetExample:
1. Started the TeeChartNetExample application and make sure the application is NOT maximized.
2. Size the window so it is wider than it is tall
3. Pressed the Copy to Clipboard button
4. Paste into your favorite paintbrush type application
5. Now resize the window so it is taller than it is wide
6. Press the Copy to Clipboard button
7. Paste into your favorite paintbrush type application
8. Notice that the aspect of the image captured is not the current aspect of window. Instead it is still the original aspect used in step 2.