Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


This is my first post ...
I am trying make a macro that basically browses a calc document, retrieves
some text strings and writes theim in a writer document. Those strings
should be formated as either say "Title2" or "Text Body", but I didn't find
methods to do so. The way I am currently writing the writer document is :

'getting the  document  and text object
Doc1 = ThisComponent
texte = Doc1.Text
'creating a cursor
cursor = texte.createTextCursor()
'change the char weight instead of changing the global paragraph style
cursor.CharWeight =
texte.insertString(cursor, "The bold face string" + Chr(13), 0 )
cursor.CharWeight =

Is it feasable to just switch from a "global" format to another?


For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.