Hi
Could someone help me with the ChartImagesPath property of the UltraChart control (NetAdvantage for ASP.NET 2008 Vol 2).
I've tried modifying the properties of the control from the code behind (e.g. UltraChart1.ChartImagesPath = @"c:\mydirectory"; or... Chart1.ChartImagesPath = "mydirectory";), from the aspx source and from the properties page of the control and every time the control just uses the default of "ChartImages" in the root of the application directory.
If I look at the path to the rendered chart image it always points to the "ChartImages" directory and if I rename this directory the application crashes out saying "Error: Sys.WebForms.PageRequestManagerSErverErrorException: Could not find a part of hte path 'c:\inetpub... ...\ChartImages". I wish to use the control in a SharePoint site using SmartPart therefore I need to specify a directory elswhere for ChartImages.
Thanks
Andy
for People using asp.net mvc, you can set the Images path from the root of your server like this:
Chart.DeploymentScenario.Scenario = ImageDeploymentScenario.FileSystem;Chart.DeploymentScenario.FilePath = "/Content/ChartImages";Chart.DeploymentScenario.ImageURL = "/Content/ChartImages/Chart_#SEQNUM(100).png";
Mourbare,
Thanks for the solution. I would note that MVC is not required for this to work. One final addition:
Chart.DeploymentScenario.ImageUrl = ResolveUrl("~/blabla/ChartImages/Chart_#SEQNUM(100).png");
I think this resolves the problem.