This basically what I would like to do (in java): XTextTableCursor xTextTableCursor = xTextTable.createCursorByCellName( "A1" ); xTextTableCursor.gotoCellByName( "B13", true );
// access the property set of the cursor selection XPropertySet xCursorProps = ( XPropertySet ) UnoRuntime.queryInterface( XPropertySet.class, xTextTableCursor ); xCursorProps.setPropertyValue( "ParaStyleName", styleName ); which seems possible, and logical, but it throws an UnknownPropertyException. Hmm. --- Andrew Douglas Pitonyak <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > >Is there any way to apply a style to a range of > cells > >in the writer? As far as I can see you have to > extract > >the XText from every cell, create a cursor and then > >apply the style. no? > > > > > Kent, you never mentioned what type of style that > you want to set. > In my free macro document, I demonstrate setting the > paragraph style for > every cell in a row in a text table... > > Find the section titled "Formatting a simple text > table" > > -- > Andrew Pitonyak > My Macro Document: > http://www.pitonyak.org/AndrewMacro.odt > My Book: > http://www.hentzenwerke.com/catalog/oome.htm > Info: http://www.pitonyak.org/oo.php > See Also: > http://documentation.openoffice.org/HOW_TO/index.html > > --------------------------------------------------------------------- > 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]