Hi,
I'm using the Office Web Components to build a Chart Web User Control. Well,
as you probably already know, you can change the chart type to column, pie,
etc. and there is a whole enum list of them.
I guess my question is this:
what i'm trying to figure out is the best way to give the client of the
Chart Web User Control only 2 choices (DropDownList): Column Clustered and
the Pie Chart in the properties box. What's the best way to do this (looking
for syntax)?
I'm sorry if I'm not providing the best information as requested i just
don't have a complete program yet.
"Jon Skeet [C# MVP]" wrote:
rodchar <ro*****@discussions.microsoft.comwrote:
hey all,
i'm trying to say something like the following but tripping up on syntax.
Basically, i'm trying to expose an enum that's inside my webusercontrol to my
client which is my .aspx page
private DisplayType _type;
public DisplayType Type
{
get { return _type; }
set { _type = value; }
}
public enum DisplayType
{
BarChart = OWC10.ChartChartTypeEnum.chChartTypeColumnClustere d,
PieChart = OWC10.ChartChartTypeEnum.chChartTypePie
}
I suspect you may just need a cast - but as you haven't shown the
compilation error, it's hard to say.
Could you post a short but complete program which demonstrates the
problem?
See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too