Hello Stephan, thank you for your support.
Best regards Andreas > -----Original Message----- > From: Stephan Wunderlich [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 02, 2005 3:43 PM > To: [email protected] > Subject: Re: [api-dev] Updating formulas (JAVA) > > > Hi Andreas, > > > sorry for the delay. But we must extract an sample from a > complex application. But now here is the sample. > > thank you for the code. Seems the second table you insert isn't > recalculated before saving it, while the first one is. > > I could circumvent this by selecting the second table before > saving the > document. In your code I changed > > //reformat document > xTextDocument.reformat(); > > to > > //reformat document > xTextDocument.reformat(); > > XSelectionSupplier xSel = (XSelectionSupplier) > UnoRuntime.queryInterface(XSelectionSupplier.class, > xTextDocument.getCurrentController()); > > xSel.select(xTextTable2); > > this way the table seems to be updated properly. > > Since this is more or less a workaround I also wrote issue #52787# to > ask for a cleaner solution. > > Hope that helps > > Regards > > Stephan > > --------------------------------------------------------------------- > 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]
