Hi

I am trying set a user defined attributes on a table cell ( com.sun.star.table.CellProperties ) using the PyUNO binding but when I use the code below:

table.getCellByName( cellId )
try:
        userAttrs = cell.getPropertyValue( "UserDefinedAttributes" )

        myAttr = uno.createUnoStruct("com.sun.star.beans.PropertyValue")      
        myAttr.Name = "URL"
        myAttr.Value = "myURL"
                                
        uno.invoke( userAttrs , "insertByName", (myAttr.Name, uno.Any( \      
                "[]com.sun.star.beans.PropertyValue", myAttr)) )

except RuntimeException, rte:
        raise rte
        
I get the following error:
    return pyuno.invoke( object, methodname, argTuple )
com.sun.star.uno.RuntimeException: conversion not possible!

Is there something wrong in the way I am setting up and passing in my values to insertByName function?

Is there a better way to set attributes for the User Defined Attributes of Properties?

Thank you,
--
Darragh Sherwin
PWB Implementations Manager
http://www.propylon.com/solutions/parliament/index.html
+353-1-4927456
+353-87-1204654

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to