This is a migrated thread and some comments may be shown as answers.

Object reference error while saving radchart

1 Answer 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
sabarishbabu
Top achievements
Rank 1
sabarishbabu asked on 06 Oct 2009, 09:52 AM
Hi,

 Am using rad chart.i want to export my image in local system.

Am using following code


           
                System.IO.MemoryStream ms1 = new System.IO.MemoryStream();
                this.chartPie.Save(ms1, System.Drawing.Imaging.ImageFormat.Png);
                this.Page.Response.Clear();
                this.Page.Response.ClearHeaders();
                this.Page.Response.AddHeader("Content-disposition", "attachment; filename=PieChart.png");
                this.Page.Response.AddHeader("Content-type", "image/png");
                this.Page.Response.BinaryWrite(ms1.ToArray());
                this.Page.Response.End();
          
    

The chart is getting saved while running in local.while running my project through IIS, i am getting "object reference error".
I gave all permissions to folders and also IIS.Even setting all permissions, i am getting the same error.

Thanks for any help,


1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 08 Oct 2009, 08:19 AM
Hi sabarishbabu,

Unfortunately we are unable to reproduce the problematic behavior in our local tests with IIS so we are unsure that the problem you are experiencing is related to the control. Please review the attached sample application and let us know how can we observe the issue locally.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (Obsolete)
Asked by
sabarishbabu
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or