in

Software FX Community

Discuss and find help for all Software FX products.

Export chart giving "Parameter is not valid" exception

Last post 09-15-2010 7:22 AM by Smartie. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-10-2010 4:06 AM

    • dipti
    • Not Ranked
    • Joined on 09-10-2010

    Export chart giving "Parameter is not valid" exception

    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

     

     

  • 09-15-2010 7:22 AM In reply to

    Re: Export chart giving "Parameter is not valid" exception

    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

     

Page 1 of 1 (2 items)
Copyright 2008 Software FX, Inc.