Hi, I'm writing to the dev list after spending many days trying hard to understand the best way and asking in user lists and forums.
I really hope someone can help me or point me in the correct direction/reading. I need to programmatically duplicate rows of a Table in openoffice writer. It's not difficult to add rows via table.Rows.insertByIndex(idx, count), that adds empty rows and it's easy to add text in that row assigning DataArray to the CellRange. Doing this way you loose control on the style of the cells and specifically if a cell has words with different style (bold/italic) they get flattened to the same face. What I need is to duplicate a row in a way that preserves the style of each word in the cell/row. As far as I understand using openoffice in headless mode prevents me from using dispatch as no ViewCursor should be available. This is the last step of a Python template system that uses openoffice (http://oootemplate.argolinux.org). I access the document via 'uno' interface in Python but any language would do to explain the logic behind it. Thanks in advance sandro *:-) Prevous attempts to get help: http://news.gmane.org/gmane.comp.openoffice.questions http://www.oooforum.org/forum/viewtopic.phtml?t=112966 http://stackoverflow.com/questions/4541081/openoffice-duplicating-rows-of-a- table-in-writer --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
