[api-dev] Error on closing eventlistner 'Cannot coerce argument type during corereflection'

2006-09-27 Thread Cor Nouws
Hi all, I've added a listner to a Calc cell. Assigned Sub Main to Document Open. Assigned Sub RemoveListener (see below) to Document Close. However, this one causes an error. See comment marked with in line. Couldn't find a solution easily (and didn't find courage to study the whole chapter

Re: [api-dev] Error on closing eventlistner 'Cannot coerce argument type during corereflection'

2006-09-27 Thread Marc Santhoff
Am Mittwoch, den 27.09.2006, 23:56 +0200 schrieb Cor Nouws: Sub AddListners Dim oCell Const sCellName as String = A1 oCell = ThisComponent.Sheets.getByIndex(0).getCellRangeByName(sCellName) oListner0 = CreateUnoListener( A10_, com.sun.star.chart.XChartDataChangeEventListener

Re: [api-dev] Error on closing eventlistner 'Cannot coerce argument type during corereflection'

2006-09-27 Thread Cor Nouws
Thanks Marc, That did it. Cor Marc Santhoff wrote: ' Gives Cannot coerce argument type during corereflection call From my experience this error message generally wants to tell you that typecasting is impossible in this situation. Since you added a ChartDataChangeEventListener I think