Hi,
Thanks for the quick response. You can actually recreate this problem by using one of the sample applications provided by ChartFx ( [installation Path]\Chart FX 7\Help and Samples\Sample Applications\Web Forms\VS2005\WorldPopulation ). Set the width and height of Chart1 to 8000 and try to Chart1.Export(
FileFormat.Png, @"C:\temp\worldpopulation.png");You should get the following stack trace error:
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) at System.Drawing.Bitmap..ctor(Int32 width, Int32 height) at ChartFX.WebForms.Internal.v.a(Graphics A_0, Int32 A_1, Int32 A_2) at ChartFX.WebForms.Chart.n() at ChartFX.WebForms.Chart.cp() at ChartFX.WebForms.Annotation.AnnotationList.a(IGraphicsEx A_0, Rectangle A_1, Boolean A_2, Boolean A_3, Int32 A_4, Int32 A_5) at ChartFX.WebForms.Annotation.Annotations.a(IGraphicsEx A_0, Rectangle A_1, Boolean A_2, Int32 A_3, Int32 A_4) at ChartFX.WebForms.Maps.MapGallery.a(PaintMarkBase A_0, Rectangle A_1, Int32 A_2, Int32 A_3) at ChartFX.WebForms.Maps.MapGallery.a(Int32 A_0, PaintMarkBase A_1, Int32& A_2, Int32& A_3) at ChartFX.WebForms.u.a(Int32& A_0, Int32& A_1) at ChartFX.WebForms.u.r() at ChartFX.WebForms.u.a(IFrame A_0, Int32& A_1) at ChartFX.WebForms.Chart.a(PaintBar A_0, IGraphicsEx A_1) at ChartFX.WebForms.Chart.a(PaintBar A_0, IGraphicsEx A_1, Rectangle& A_2) at ChartFX.WebForms.Chart.a(IGraphicsEx A_0, Rectangle A_1, Boolean A_2) at ChartFX.WebForms.Chart.a(Stream A_0, IOutputWriter A_1, OutputText A_2, OutputText A_3, OutputInfo A_4) at ChartFX.WebForms.Chart.a(String A_0, Stream A_1, TextWriter A_2, TextWriter A_3) at ChartFX.WebForms.Chart.Export(FileFormat format, Stream stream) at ChartFX.WebForms.Chart.Export(FileFormat format, String fileName)
The width and height value thresholds that cause this error varies from svg to svg.
Thanks