Vivian River
Vivian River

Reputation: 32400

Save ASP.NET Chart Control output on server?

I'm just now getting familiar with the .NET chart controls. I'd like to know if I can save the contents of a chart as a .jpg or similar file on the server.

I would like to be able to have the user download the file or display it to the user in a non-.net page.

I think it should be possible to do this. How?

Upvotes: 0

Views: 603

Answers (2)

Chenthil
Chenthil

Reputation: 326

use this in asp:chart

ImageStorageMode="UseImageLocation" ImageLocation="~/your server path"

ImageType ="Png"

server path example:~/Images/TempImages/compare

compare is the name of image

Upvotes: 0

Dirk Brockhaus
Dirk Brockhaus

Reputation: 5062

Look at Chart.SaveImage

Upvotes: 1

Related Questions