S
SJ
Hello, I'm trying to call the ApplyCustomType method in a C#
application using the Microsoft Excel 10.0 object library. I'm using
this method to use a user-defined chart type.
The method signature is
ApplyCustomType ( Excel.XlChartType ChartType , System.Object TypeName
)
What's throwing me is the first parameter. XlChartType is an
enumeration but there is no "user-defined" member. All members map to
a specific pre-defined chart type.
The code below was generated by running a VBA macro in Excel. The
ApplyCustomType method takes a value of xlUserDefined as the first
parameter.
Chart.ApplyCustomType(
ActiveChart.ApplyCustomType ChartType:=xlUserDefined,
TypeName:="ByVendor"
Does any know what to pass as the first parameter in ApplyCustomType
for C#?
Thanks,
Scott
application using the Microsoft Excel 10.0 object library. I'm using
this method to use a user-defined chart type.
The method signature is
ApplyCustomType ( Excel.XlChartType ChartType , System.Object TypeName
)
What's throwing me is the first parameter. XlChartType is an
enumeration but there is no "user-defined" member. All members map to
a specific pre-defined chart type.
The code below was generated by running a VBA macro in Excel. The
ApplyCustomType method takes a value of xlUserDefined as the first
parameter.
Chart.ApplyCustomType(
ActiveChart.ApplyCustomType ChartType:=xlUserDefined,
TypeName:="ByVendor"
Does any know what to pass as the first parameter in ApplyCustomType
for C#?
Thanks,
Scott