Hi Kent,
If you have a textframe and you it is autosized is
there no way of finding out how big it is after you
put the text content in it?
I have tried everything. I have three text frames of
various sizes (due to various content) and they always
return the same size.
I even tried going through the drawpage, but oddly
that didn't work.
XDrawPage xDrawPage = xDrawPageSupplier.getDrawPage();
XShapes xShapes = ( XShapes )
UnoRuntime.queryInterface( XShapes.class, xDrawPage );
int shapeCount = xShapes.getCount();
for ( int i = 0; i < shapeCount; i++ )
{
Object shapeObj = xShapes.getByIndex( i );
XShape shape = ( XShape ) UnoRuntime.queryInterface(
XShape.class, shapeObj );
Size size = shape.getSize();
}
a TextFrame has the properties "FrameHeightAbsolute" and
"FrameWidthAbsolute" which, as far as I know, contain the values you
look for.
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]