dipti Posted September 10, 2010 Report Share Posted September 10, 2010 I am using charFx 7. Sometimes when i export my chart it gives a error "Parameter is not valid". This behaviour is random i.e. for some charts it gives this error. chart.objChart.Export( FileFormat.Bitmap, System.Web.HttpContext.Current.Server.MapPath("ChartImages") +"\\" +img);Please help me with the solution Thanks & Regards Dipti Quote Link to comment Share on other sites More sharing options...
Smartie Posted September 15, 2010 Report Share Posted September 15, 2010 I've had this error with certain gallery types when the image size specified is too small for the chart. I still have the support ticket open, they've not gotten back to me after saying they could re-create the error. [ArgumentException: Parameter is not valid.] System.Drawing.Graphics.CheckErrorStatus(Int32 status) +1503977 System.Drawing.Graphics.FillPie(Brush brush, Single x, Single y, Single width, Single height, Single startAngle, Single sweepAngle) +282 System.Drawing.Graphics.FillPie(Brush brush, Rectangle rect, Single startAngle, Single sweepAngle) +135 ChartFX.WebForms.Internal.GraphicsEx.FillPie(Brush brush, Rectangle r, Double dStartAngle, Double dSweepAngle) +219 ChartFX.WebForms.d.a(Brush A_0, Rectangle A_1, Double A_2, Double A_3) +64 ChartFX.WebForms.Galleries.Radar.a(PaintMarkBase A_0, Int32 A_1, Int32 A_2, Int32 A_3, Int32 A_4, Rectangle A_5, Double A_6) +5321 ChartFX.WebForms.Galleries.Radar.a(Int32 A_0, PaintMarkBase A_1, Int32& A_2, Int32& A_3) +4451 ChartFX.WebForms.v.a(Int32& A_0, Int32& A_1) +54 ChartFX.WebForms.v.u() +1438 ChartFX.WebForms.v.a(IFrame A_0, Int32& A_1) +953 ChartFX.WebForms.Chart.a(PaintBar A_0, IGraphicsEx A_1) +715 ChartFX.WebForms.Chart.a(PaintBar A_0, IGraphicsEx A_1, Rectangle& A_2) +118 ChartFX.WebForms.Chart.a(IGraphicsEx A_0, Rectangle A_1, Boolean A_2) +211 ChartFX.WebForms.Chart.a(Stream A_0, IOutputWriter A_1, OutputText A_2, OutputText A_3, OutputInfo A_4) +455 ChartFX.WebForms.Chart.a(OutputText A_0, OutputText A_1, Boolean A_2, String A_3, String A_4) +772 ChartFX.WebForms.Chart.Render(HtmlTextWriter writer) +88 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +13 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +13 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +42 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.Page.Render(HtmlTextWriter writer) +38 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +11026875 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.