Exporting plot to jpeg, from dynamically created TChart.
Posted: Fri Jun 05, 2009 3:17 pm
Hello,
I'm using TeeChart Pro v3 for Visual Studio .NET. I have implemented the user control with TChart on it. This control is created dynamically and I don't put it on any form. I would like to export plotted graph to jpeg file. So I'm creating new object of control, setting data to plot and exporting it to file.
The problem is that the images are always 400x300 px. I have been trying to change size of control and also invoke variety methods (like Invalidate, Refresh, Update, etc) but it didn't help.
The funny thing is that, when in debug-mode I watch the control object in QuickWatch, expand TChart object property and close QuickWatch, then images are saved correctly.
So the question is: what the QuickWatch does what makes it working and what I can do with it.
Regards
I'm using TeeChart Pro v3 for Visual Studio .NET. I have implemented the user control with TChart on it. This control is created dynamically and I don't put it on any form. I would like to export plotted graph to jpeg file. So I'm creating new object of control, setting data to plot and exporting it to file.
The problem is that the images are always 400x300 px. I have been trying to change size of control and also invoke variety methods (like Invalidate, Refresh, Update, etc) but it didn't help.
The funny thing is that, when in debug-mode I watch the control object in QuickWatch, expand TChart object property and close QuickWatch, then images are saved correctly.
So the question is: what the QuickWatch does what makes it working and what I can do with it.
Regards