Re: How to Insert text into word document................

2004-07-22 Thread wolfgang.unger
Hi, this simple example works for me(should also work on your computer): To jump to a special part(paragraph) of the doc, just count the already existing paragraphs in your template doc and move to the one you want to insert your text. - Paragraph p = s.getParagraph(5 or whatever); I'm just beginni

Re: How to Insert text into word document................

2004-07-22 Thread Srinivas Rao
Hi wolfgang, H r u? i understood the mail,you are right.Before populate the template , i fill the pre-define data like today date and time at top left, address at top right ete like that fill it with poi and then open word document with this dot/doc as parameter. My proble is ,, I

Re: How to Insert text into word document................

2004-07-22 Thread wolfgang unger
Hi, I may be wrong, but as far I understood, HWPF(or poi) deals with the document itself, not with an Ole-Connection to Word or Exel. You can start word or excel with Runtime r = Runtime.getRuntime(); Process p = r.exec("...\\winword.exe"); but you will not be able to interact with the word ins

How to Insert text into word document................

2004-07-22 Thread Srinivas Rao
Srinivas Rao <[EMAIL PROTECTED]> wrote:Hi Friends, Thank you very much for sending the replay to me regularly.Now i am able to run the QuickTest.java and i am getting the text from the word document. But i am not able to Insert the data into the word document. My aim is, I need to create a tem

RE: How to Insert text into word document................

2004-07-22 Thread Braim
Objet : How to Insert text into word document Hi Friends, Thank you very much for sending the replay to me regularly.Now i am able to run the QuickTest.java and i am getting the text from the word document. But i am not able to Insert the data into the word document. My aim is, I ne

How to Insert text into word document................

2004-07-21 Thread Srinivas Rao
Hi Friends, Thank you very much for sending the replay to me regularly.Now i am able to run the QuickTest.java and i am getting the text from the word document. But i am not able to Insert the data into the word document. My aim is, I need to create a template in word and then fill the docume