Hi Bernard, I do the following:
while (eoParagraph.hasMoreElements()) { XServiceInfo xInfo = (XServiceInfo) UnoRuntime.queryInterface( XServiceInfo.class, eoParagraph.nextElement()); XPropertySet xSet = (XPropertySet)UnoRuntime. queryInterface(XPropertySet.class, xInfo); xSet.setPropertyValue("ParaLeftMargin", new Integer(200)); xSet.setPropertyValue("ParaFirstLineIndent", new Integer(2500)); LineSpacing linha = new LineSpacing(); linha.Height = 150; linha.Mode = LineSpacingMode.PROP; xSet.setPropertyValue("ParaLineSpacing", linha); xSet.setPropertyValue("ParaAdjust", ParagraphAdjust.BLOCK); xSet.setPropertyValue("ParaRightMargin", new Integer(100)); xInfo = null; } But only works for the first paragraph. Why this happens? Bernard Marcelly wrote: > > Bonjour aloizio > Message du 2006-11-10 17:12: >> How can I set the text alignment to Justified using Open Office API. I > > Use paragraph property : ParaAdjust > In the SDK see service com::sun::star::style::ParagraphProperties > > Regards > Bernard > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Set-Text-to-Justified-Alignment-by-OO-API-tf2608724.html#a7282387 Sent from the openoffice - api dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]