How to Redraw/Save Web Chart with different Style Properties
Posted: Tue Jun 08, 2010 1:19 am
Hi,
I am using TeeChart for ASP.NET. How do I export and save a chart that would have different style properties.
example
First chart to be generated should have width and height of 200 while second chart will have width and height of 1000 and 800.
The above code does not work and renders the size and with similar to the first saved image.
Thanks
I am using TeeChart for ASP.NET. How do I export and save a chart that would have different style properties.
example
First chart to be generated should have width and height of 200 while second chart will have width and height of 1000 and 800.
Code: Select all
guid = Guid.NewGuid().ToString();
fileName = guid + ".png";
largePicFileName = guid + "large" + ".png";
webChart.Chart.Export.Image.PNG.Save(_chartPath + fileName);
_webChart.Width = new Unit(1000);
_webChart.Height = new Unit(800);
webChart.Chart.Export.Image.PNG.Save(_chartPath + largePicFileName);
Thanks