I have an application with multiple graphs, which I have wrapped in a graph class. I am able to successfully export the various 2-dimensional graphs to JPeg, but when I attempt to export a 3D Surface graph, I get an System:ArithmeticExpression error in TeeChart.dll (Overflow or underflow in the arithmetic operation).
I am working in VS 2005, using C#.
Here is the function I am using to save the graphs:
public void SaveGraph(string FileName)
{
Steema.TeeChart.Export.JPEGFormat jPEG = M_CurrentGraph.Export.Image.JPEG;
jPEG.GrayScale = true;
jPEG.Height = 500;
jPEG.Width = 700;
jPEG.Quality = 100;
jPEG.Save(FileName);
}
The error occurs upon the declaration and assignment of the variable jPEG.
Here is the stack trace:
TeeChart.dll!Steema.TeeChart.Export.ImageExportFormat.ImageExportFormat(Steema.TeeChart.Chart c = {Steema.TeeChart.Chart}) + 0xaa bytes
TeeChart.dll!Steema.TeeChart.Export.JPEGFormat.JPEGFormat(Steema.TeeChart.Chart c = {Steema.TeeChart.Chart}) + 0x25 bytes
TeeChart.dll!Steema.TeeChart.Export.ImageExport.JPEG.get() + 0x2f bytes
> SensorMetrix.exe!SensorMetrix.SM_Graph.SaveGraph(string FileName = "C:\\Film_Thickness\\Part #1-1-Gray-080116101540.JPG") Line 565 + 0x22 bytes
Anyone have any suggestions?
Thanks!
Underflow/Overflow error exporting a Contour graph to JPEG.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi GrayMoody,
I'm not able to reproduce this issue here using latest TeeChart for .NET v3 release available at the client area, which is build 3.2.2930.22968. Which TeeChart version are you using exactly?
Thanks in advance.
I'm not able to reproduce this issue here using latest TeeChart for .NET v3 release available at the client area, which is build 3.2.2930.22968. Which TeeChart version are you using exactly?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Narcis,
Thanks for taking a look at it. I'm using Build 3.2.2930.22968, which I just recently downloaded on 1/15. I had been using a prior version, but I had the 'Export to JPEG results in a solid black JPEG' error, which Build 3.2.2930.22968 successfully fixed.
Is there anything else I could provide to aid in diagnosising this?
Thanks again,
Gray
Thanks for taking a look at it. I'm using Build 3.2.2930.22968, which I just recently downloaded on 1/15. I had been using a prior version, but I had the 'Export to JPEG results in a solid black JPEG' error, which Build 3.2.2930.22968 successfully fixed.
Is there anything else I could provide to aid in diagnosising this?
Thanks again,
Gray
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Gray,
Thanks for the information.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Thanks for the information.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |