Setting Custom Hieght/Width of the Chart object whith en ChartSpac

V

vineetbatta

Hi All,

i have requirement to custom control the height/Width of the graph displayed
as part of page using OWC.

I am not using Server side code. Its completely Client Side.

Sample code

Dim oChart
Dim oSeries1, oSeries2
dim oConst

'Ensure ChartSpace1 is empty:
' ChartSpace1.Clear
form1.ChartSpace1.DisplayFieldList=True
Set oConst =form1.ChartSpace1.Constants


'Create a new chart in the ChartSpace
Set oChart = form1.ChartSpace1.Charts.Add
'oChart.style.width = 100 - THIS IS NOT SUPPORTED.

Is there any way i can control this programmatically?

Any pointer or Help will be appreciated.
 
A

Alvin Bruney - ASP.NET MVP

You have to set the dimensions as part of the chart object. The style
attribute gets overridden if memory serves me correctly. I can't remember
the exact syntax right at this moment, sorry.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top