Hi,
Could you try as:
//Save the chart image into a memory stream.
MemoryStream ms = new MemoryStream();
chart.SaveToSwf(ms);
//Save the chart image from the memory stream to the response.
Response.Clear();
Response.ContentType = "image/png";
Response.OutputStream.Write(ms.ToArray(), 0, (int)ms.Length);
Thank you.
Amjad Sahi
Support Developer,
Aspose Nanjing Team
Contact Us