Dear Fernand, I am not sure what you mean, but regardless you saved the day! I went back to your post ages ago where you described your solution, and it worked like a charm. My solution was way too slow.
Here is you solution in java, I will post it as a workaround in the bug entry. As you may remember you create a viewcursor and then get its y positio then go to the end and then get the y postion again. Thanks this really came in handy: // get the cursor XTextViewCursor xViewCursor = xViewCursorSupplier.getViewCursor(); xViewCursor.gotoRange( frameCursor, false ); Point pos = xViewCursor.getPosition(); int yPos1 = pos.Y; xViewCursor.gotoEnd( false ); pos = xViewCursor.getPosition(); int yPos2 = pos.Y; long actualHeight = yPos2 - yPos1; --- Fernand Vanrie <[EMAIL PROTECTED]> wrote: > You can, but (as i remembered) only after you placed > the frame on a > document . > > Sorry to be dramatic, but I desperately need a > > workaround for this issue: > > > http://www.openoffice.org/issues/show_bug.cgi?id=63211 > > > > I have asked before, but got no replies. > > > > Like the issues says it is impossible to ascertain > the > > real height of a automatic height frame. But I > know > > this info is known to the application, you can see > it > > in the status bar?! Is there no way I can get this > > information by dispatching commands? Or any other > > mechanism? > > > > thanks > > > > kent > > > > __________________________________________________ > > 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] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ 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]
