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,
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,