HWPF: Writing/Copying Word files - Word crashes when saving such files

2006-09-15 Thread Rainer Schwarze
Hi, When I load files generated by HWPF into Word 2000 and save them, Word locks up and takes 100%-cpu resources. My first question is: Should this work with the current HWPF code and if not, does someone know a version of HWPF where saving the generated files in Word worked? My second

Re: How to modify the header and footer of word document using poi-hwpf

2006-09-28 Thread Rainer Schwarze
At 23:40 25.09.2006, you wrote: Hello All, I want to know how to modify the header and footer of the word document using POI-HWPF. Which class or method will help in achieving this task. Thanks in Advance Satheesh As far as I can see, its not yet supported in HWPF. The library needs to be

Re: Creating new word doc with POI

2007-01-19 Thread Rainer Schwarze
), 1Table); pfs.createDocument(new ByteArrayInputStream(dataBuf), Data); // write the properties: writeProperties(pfs); // -- insert this pfs.writeFilesystem(out); } That should do it. Best wishes, Rainer -- Rainer Schwarze

Re: trying to use POI with a DOT file

2007-02-28 Thread Rainer Schwarze
At 22:12 28.02.2007, Christian Bongiorno wrote: [...] ideally what I would like is to have a Template .DOT file and Identify fields in it that I can then update programatically and save out. I can do anything I like with the DOT that makes this easier but I simply know nothing of the MS

Re: Need to set style of a character/paragraph using HWPF

2007-03-01 Thread Rainer Schwarze
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

Re: SprmIterator

2007-03-01 Thread Rainer Schwarze
Hello Christian, At 19:23 01.03.2007, Christian Bongiorno wrote: I noticed that the SprmIterator doesn't actually implement the Iterator interface. I mean, it implements 2 of the functions but simply doesn't implements Iterator I was busy for a while with HWPF and as of my understanding the

Re: [2] Need to set style of a character/paragraph using HWPF

2007-03-01 Thread Rainer Schwarze
At 11:45 01.03.2007, turjabarua wrote: Hi Rainer, Actuall by saying style i wanted to say style of character/paragraph , i.e if I open a document in ms word it shows just beside font name like... normal, heading 1, heading 2... etc When I parse one do file following code

Re: trying to use POI with a DOT file

2007-03-01 Thread Rainer Schwarze
Hi Christian, At 19:02 01.03.2007, Christian Bongiorno wrote: The file output can be in any form I like as long as it can be opened by MS word and looks nice. It's currently output in that XMLish form. I can't invest a lot of time in this so staring at file formats and deciphering them is out.

Re: SprmIterator

2007-03-01 Thread Rainer Schwarze
At 23:42 01.03.2007, Christian Bongiorno wrote: Rainer, You misunderstand my intent in posing the question. I know not what a Sprm even is (well, with the missing vowel added I do), it was more of a OO question with regard to the libraries. That's all. Christian, ah, ok. I thought you have

Re: [2] Need to set style of a character/paragraph using HWPF

2007-03-02 Thread Rainer Schwarze
Hi Turja, At 12:16 02.03.2007, turjabarua wrote: Hi Rainer, Thanks my problem is almost solved now. It is workign with existing document edit. I'm glad that I could help :-) But now the problem is whenever I want to create a new document and add a paragraph to that, it is throwing

Re: [2] Need to set style of a character/paragraph using HWPF

2007-03-05 Thread Rainer Schwarze
At 06:18 05.03.2007, turjabarua wrote: Hi Rainer, Might be the way i'm trying to generate a word document is wrong. But i'm really confused how to create a blank document first and add text, paragraph or whatever I want to that document. Now I'm trying by using (default constructor)

Re: [2] Need to set style of a character/paragraph using HWPF

2007-03-13 Thread Rainer Schwarze
At 05:57 13.03.2007, turjabarua wrote: Hi Rainer, Thanks for ur great help... it almost worked.if I get a complete solution I'll definitely post a message...it seems it's better being a HWPF developer rather than a user :o). Hi Turja, thanks for the flowers

Re: unnable to copy text with format

2007-05-30 Thread Rainer Schwarze
Satya Dev Lankepally wrote: i am doing search and replace kind of work by using POI HWPF. I am getting text properly, but I am not getting format [bold, italic and underline]. How can I get format for the text? Please help me ... Hi, to retrieve the formatting you can use the Range class