Jan Svitok wrote:

> 
> Try prefixing it with something. I've found at [1] that they refer to it 
> as
> Excel.XlChartType.xlLine
> 
> So try something similar.
> 
> [1] 
> http://msdn2.microsoft.com/en-gb/library/microsoft.office.tools.excel.chart.linegroups(VS.80).aspx

Hi,

if I change this line
excelchart.ChartType = ChartTypeVal;

into excelchart.ChartType= excelchart.XlChartType.xlLine

I get the following message:

excel1.rb:37:in `method_missing': unknown property or method 
`XlChartType' (WIN32OLERuntimeError)
 HRESULT error code:0x80020006
 Unknown name.	from excel1.rb:37

Li


-- 
Posted via http://www.ruby-forum.com/.