We're using the webChart control on several pages in different sub-folders within our project. We'd like all the charts to use a single shared folder for the images. I've tried setting DeploymentScenario.FilePath property to a path that I created within the project. I see the images being created in that folder but the web page seems unable to access them to display. The folder seems to have the same access permissions as the default ChartImages folder which was working. What am I missing?
Thanks.
You need to specify and the image url:
this.UltraChart1.DeploymentScenario.FilePath = "ChartImages";
this.UltraChart1.DeploymentScenario.ImageURL =
"ChartImages/Chart1_#SEQNUM(100).png";
this.UltraChart2.DeploymentScenario.FilePath = "ChartImages";
this.UltraChart2.DeploymentScenario.ImageURL = "ChartImages/Chart2_#SEQNUM(100).png";
Just make sure that you have different image name for every chart.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Chart_Image_Deployment_in_WebChart.html
Hi,
I've got a similar issue. We had the aspx pages in the root folder and when I was creating the content - putting charts on - the ChartImages folder was created in the root. However, now I've moved the aspx pages to different sub folders, respetive ChartImages folders were created in the subfolder.
I want to have a single ChartImages folder in root. I've tried setting my chart deployment scenario as follows on one of the pages:
FilePath = ~/ChartImagesImageURL = /ChartImages/Chart_#SEQNUM(100).png
However, when I view the page I just get a red X. The url of the image points to the root of local ASP Development Server and not my website.
My runtime site is:
http://localhost:2964/MyWeb/Projects/Reports/MyPage.aspx
My image url is:
http://localhost:2964/ChartImages/CPPFChart_5.png?KxRx=0x02448
I think this should be:
http://localhost:2964/MyWeb/ChartImages/CPPFChart_5.png?KxRx=0x02448
Any ideas?
Andez
if the tilde character was properly working in the chart, then it should work given the following settings:
FilePath = ~/ChartImagesImageURL = ~/ChartImages/Chart_#SEQNUM(100).png
but I found that this wasn't working; the tilde (~) was not filtered out of the generated image url.
so i logged it as a bug (#20022) and fixed it. this should be resolved in a future service release.
feel free to contact infragistics developer support with that bug number to inquire about its status.