I just realized that when a chart is created, it actually creates a JPEG in the ChartImages folder on the web server.
Is there any way to somehow automatically delete these images after the web page is rendered?
My fear is that the web server is going to fill up fast with these graphics because we have three or four on a page and several pages.
Thanks
You can even change the SEQNUM from 100 to something less....but I dont think its possible to delete.
codepenguin -
In the chart properties in the DeploymentScenario section the property: ImageURL can be set to 'thechartimagedirector'/thechartname.#EXT
This will create only one image and overwrite the same image every time one is created. Were #EXT represents the file extension of the image, which can be set using the ImageType property.
Just FYI
Patrick
The number of generated images (per chart) is specified by DepolymentScenario.ImageURL property. While there's no automatic clean-up, the images get recycled after the final sequence number has been reached.
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Chart_Image_Deployment_in_WebChart.html
You can render the charts using a SecureImagePipe control that you place on a seperate page, usually called "ImagePipe.aspx". The secureimagepipe control should be the only control on the aspx page. Set your graphs deploymentScenario.Scenario to ImageDeploymentScenario.Session;
This will result on no image being rendered in the ChartImages folder. It will store a reference number in the session variable, and use the control on the page specified to stream the image to the browser instead.
Go to the help pages and search for deploymentScenario. You'll find a much better explanation there.