
The IT forms come with macros which you need to enable to fill them up. Specific to ITR-2, I believe (unfortunately) you may still need to rely on MS Office. In any case ITR4 (needed for my son) is only in Java. In the worst case I can go to the Java format. In fact I do not know how to write macros! I hope it can handle Income Tax forms. A control character is usually inserted by method :Ĭode: Select all private void writeResume(.XText xText, .I do not use embedded graphs or write macros. This character is different from the character LINE_BREAK. You create a paragraph with insertion of a control character PARAGRAPH_BREAK. If your text range is one paragraph or less you can only apply one paragraph style. As you should expect, a paragraph style applies to the whole paragraph. You are concerned with Paragraph styles in Writer. In Writer : Paragraph style, Character styles, Page Styles, Frame styles, List styles. I need some way to limit the selection to the String.īefore doing any programming, you need to understand how styles work in OpenOffice. I want to add text and have it follow a particular style ("Heading 1", "Heading 2", etc).Īdding text to the document does work, changing the style does work however the last style set is applied to the entire document and not just the last String. Quaternion wrote:I have an issue where I'm simply trying to add new text and then apply a LibreOffice style to it. After answering here post your answer there so I can avoid having the points soon expire. NOTE 2: This message has been posted on StackOverflow with users with accounts there I should mention this question is there with a 200 pt bounty. I should think to write out a document changing styles would be a pretty basic requirement! I have the feeling there are more VB macro writers for OOo/LO than Java developers, then again maybe a C++ or Python developer has a solution. NOTE 1: Although the following code is in Java I am more than willing at accept a solution using any programming language, the UNO APIs are similar enough that I could convert a solution from another language. clearly not certain, and advice would be most welcome. but don't know how to create new XTextRanges containing only my latest String.

I think I need an XTextRange and the Style belongs to that and not the cursor. I need some way to limit the selection to the String.

I have an issue where I'm simply trying to add new text and then apply a LibreOffice style to it.
