At 10:34 01.03.2007, turjabarua wrote: >Hi all, > I am quite new to HWPF. I want to create a word doc where >characters/paragraph will be written in specific style. So i need to know >how can I set style while creating a word doc using HWPF. Can anybody help >me?? >turja
Hi Turja, you probably insert text and/or paragraphs using a Range instance. There are those insertBefore / insertAfter methods which in addition to the text String take a CharacterProperties instance. The CharacterProperties instance is the thing you need to take care of for formatting. For paragraphs you look for ParagraphProperties. If you need more details, just ask :-) (My usual warning for HWPF: You may get along while staying with very simple documents. If you use fields, headers/footers, etc. you should expect that your generated files are invalid and Word crashes on them.) Best wishes, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
