On 05/27/09 12:15, Niklas Nebel wrote:
Make sure to pass the argument with the right type. Instead of
 array[0] = xRange;
use
 array[0] = new com.sun.star.uno.Any(XCellRange.class, xRange);
I have to admit I don't know if this is supposed to make a difference, but apparently it does.

The former creates a UNO ANY value containing a reference of type XInterface while the latter creates an ANY value containing a reference of type XCellRange (and both referencing the same UNO object). Depending on how the receiving code inspects the ANY value, this can indeed make a difference. (Although code for which this does make a difference is generally considered bad code.)

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to