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();
 
}

__________________________________________________
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