I am trying to get the height of a row in a table with
autoheight, but I always get 0. Is this a bug or am I
doing something wrong?

Regards

kent

################## Macro to Test #######

Sub Main

Dim s As String
Dim oTable
Dim oVC
Dim oCell
Dim nCol As Long
Dim nRow As Long
oVC =
ThisComponent.getCurrentController().getViewCursor()
If IsEmpty(oVC.TextTable) Then
        Print "The view cursor is not in a text table"
Exit Sub
End If
oTable = oVC.TextTable
For nRow = 0 To oTable.getRows().getCount() - 1
        oRow =
ThisComponent.getTextTables().getByIndex(0).getRows().getByIndex(0)

        oRow.IsAutoHeight = true
        msgbox  " is autoheight " + oRow.IsAutoHeight + "
HEIGHT " + oRow.Height  
Next

end Sub

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to