Profile Picture

Cached webpage recall nevron chart url show chart image as 1x1 pixel or blank chart

Posted By JSW W. 12 Years Ago

Cached webpage recall nevron chart url show chart image as 1x1 pixel...

Author
Message
JSW W.
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
Hi
I observed that if i set a webpage to server cache the chart url no longer there so it show as white blank.
How to fix such situation? The chart calculation can be intensive so i do want to cache result no to call sql everytime.

Regards,

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi JSW,

In that case you can use the control to generate a store an image on the server like:

using (NChartControl chartControl = new NChartControl())

{

// configure control here

// render to image

chartControl.ImageExporter.SaveToFile("c:\\temp\\chart.png", new NSize(400, 400), NResolution.ScreenResolution, new NPngImageFormat());

}

That will generate a static image on the server that you can then reference in the HTML.



Best Regards,
Nevron Support Team



JSW W.
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
When chart is rendering the other users that are opening that page will have racing condition or not? Or will the webbrowser will just show the last image.

BTW, chart will be overwrite without problem or it has to be removed first?

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

The chart will overwrite the last generated image - the server will simply pick the last generated image if it does not use caching.



Best Regards,
Nevron Support Team



JSW W.
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
Thanks your suggestion solved my problem.



Similar Topics


Reading This Topic