I am facing a problem with UltraChart in ASP.NET. I have enabled the scrollbars on my charts but I do not always see the chart with images. While debugging the application I am able to see the scrollbars with images, but if I delete the images, they are not recreated.
The images in scrollbar are not always created in the ChartImages folder. And when it is not created the chart shows only placeholders of the scrollbar, which is really bad.
My first question is, if I have set the deployment scenario of my chart as Session, so why should images be created on the disk. This consumes a lot of disk space. For a single chart 60 images were created which consumes almost 50 KBs.
Secondly, why are images not created always, I just see placeholders of the scrollbars in my application which makes the chart look very ugly.
To add some info, I am using NetAdvantage for .NET 2007 Vol. 3 CLR 2.0 with ASP.NET 2.0
To the best of my knowledge, the images are only generated once, when you enable the scroll bar images through Visual Studio. The images are not dynamically generated because they are static content (and don't vary from one request to the next). Once you generate the images you want, they can be re-used for every request for that chart. The images should be treated like other image resources in your application, and should not be deleted.
Well, If that is the case then I have following questions/points:
1. If these images are static, I should be able to decide where I want to keep these images. If I move these images from /ChartImages folder to the common Images folder of my application, it does'nt work.
2. Why are images not generated when the application is deployed on IIS?
The chart needs to know where you've moved the images to, so if you decide to move the scrollbar images that were generated by the designer, you'll need to change the ChartImagePath property accordingly. I'd also recommend taking a look at the topic on using Chart Scrolling and Zooming.
The images do not get generated at run-time, they only get generated when you are desigining the chart with Visual Studio, and enable the Scrolling and Zooming. Again, this is for performance reasons.
Hope this helps,
-Tony
Sorry to bring up an old topic again, but I'm trying to find the images so I can create my own. I've looked at the Chart Scrolling and Zooming help page, but the location that it says to look under:
XP -- C:\Documents and Settings\All Users\Documents\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 3.5\Samples\ASP.NET\WebFeatureBrowser\WebCharts\ChartImages
does not exist on my machine. I'm not sure if it's changed in .NET 2009 Vol. 1 CLR (which I'm using) but I can't find the images ANYWHERE.
I know they exist because they are generated correctly for my charts. I'd just like to customize them to fit my design better. If someone can tell me where I might find them, or even an image name so I can search, I'd appreciate it.
By default scrollbar images are stored in your application's ChartImages folder. These images typically have the control name, SB1 or SB2 and arrow/minus/plus/etc. Look among the existing chart images and you should find them. If you don't see them, try turning EnableScrollBar property off and on at design time.
Thank you for your reply, but that's not what I'm looking for. The images are getting generated correctly. However, in the help page, it shows a path where the original, uncut images are. Those are what I'm looking for, and they are not located in the path that the help page says they should be.
The folder path you were referring to is actually where the samples get installed. This is a separate installer that you can download, but it's not the central location for the scrollbar images. We had to package those images along with the samples to make the scrolling work. The images actually get generated by the chart dll, so you can use the images in your ChartImages folder for modification.