https://bugs.freedesktop.org/show_bug.cgi?id=42819

--- Comment #4 from Noel Power <[email protected]> 2012-03-09 09:55:11 PST ---
so 
   tbl = doc.getTextTables().getByIndex(0)
   Dim border As new com.sun.star.table.TableBorder
   border = tbl.TableBorder

as we know fails but the following ( which you would think the same thing )

    CellRange =  Doc.CurrentController.ActiveSheet.getCellRangeByName("c5")
    dim oBorder as new com.sun.star.table.BorderLine2
    oBorder = CellRange.bottomBorder

works perfectly, eventually I found where it goes wrong, it's all down to how
the 'Property' is defined. In the case of TableBorder it is defined as 
PropertyAttribute::MAYBEVOID and because of that the type is set to
variant/empty and then we fail when we try to check the class of border vs
tbl.TableBorder. I will put yet another horrible hack into basic to allow the
'real' type of the property to be accessed

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to