Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
ChartImagesPath
posted

 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

Parents
  • 1004
    posted

    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";

     

Reply Children
No Data