When a chart is created, it is (normaly) saved with a sequence number embedded in the file name, and the control takes care of reusing the files etc... How can I get the actual name (including sequence number) of a chart? I have a situation where a chart is generated on one page and actually displayed on another. The traffic on the site is such that I do not need to worry about the chart being overwritten to soon, I just need to know where exactly where infragistics put it. I know I can specify a filename, but then I have to do the cleanup etc...
How do I get the full file name of a chart created by IG?
Thanks for the reply.
I don't see the FillSceneGraph event anywhere on the chart objects. Was this event added in a later version of UltraChart (we're using v7.2)? Also, the 'sender' in a ChartDrawItem event is of type ChartRender.
The ImageUrlResolved properties are set whenever the chart is re-painted and before it's rendered on the screen. You should have no problems accessing the chart through any of the events, since you don't need to access the chart through the event args. For example, somewhere on the page you have your ultraChart1 that is accessible everywhere on that page. So inside ChartDrawItem or FillSceneGraph you can just use ultraChart1.DeploymentScenario..... If for some reason you can't do that, use the sender parameter and cast it to UltraChart. FillSceneGraph will fire once every time the chart is refreshed, ChartDrawItem will fire once for every primitive in the chart.
I'm sorry to respond to an old post but I'm having the same problem and am at a loss as to how to get at these properties. I've tried linking into the ChartDrawItem method but that's called multiple times per chart and there's no access to the actual chart object being rendered. I need the final image generated by the chart. When is the chart.DeploymentScenario.ImageURLResolved1 property actually set and how can I get to it?
Matt
You should be able to get the image with chart.DeploymentScenario.ImageURLResolved1 for the chart image and ImageURLResolved2 for the base image (you will have 2 images if you use a scrollbar). You can use FillSceneGraph event or ChartDrawItem event to get these property values.