Hi at all.
I can't get the height of a table cell in MS Word.
I can only get the width; the height always returns 9999999.00.
Is this a Word bug? (Version 2016 and 2019 give the same result.)
oWord := CreateObject("Word.Application")
oFile := oWord:Documents:Open( cFilePath(GetModuleFileName(GetInstance())) + "doc1.docx" )
? oFile:Tables[1]:Rows[2]:Height // result: 9999999.00
? oFile:Tables[1]:Cell(2, 2):Height // result: 9999999.00
? oFile:Tables[1]:Cell(2, 2):width // result: 96.25
Only if I enter a height value does it return the measurement:
? oFile:Tables[1]:Cell(2, 2):Height := 24 // result: 24
? oFile:Tables[1]:Cell(2, 2):Height // result 24.00
oWord:Quit()
can someone help me?
thanks, Marzio