Forums > Technical Discussion > Create a new line in my HWPFDocument

Login/Join to Participate

Markus1982newbie
1 post

Posted:
I create a HWPFDocument out of an empty worddocument.

But I cannot figure it how to create a new line/paragraph.

I would really appreciate help.

Thanks a lot.

SymBRONZE Member
Geek-enviro-hippy priest
1,858 posts
Location: Diss, Norfolk, United Kingdom


Posted:
Maybe you should try posting in a forum that has something to do with what you're talking about.

I've just googled and I can't find anything...

This is to do with poi spinning - god luck though!

smile

There's too many home fires burning and not enough trees


marcoenthusiast
328 posts
Location: uk


Posted:
There may be a time when you want to generate new Word documents or modify an existing document using Java.

Make sure that this is absolutely necessary. In most cases, a nonproprietary file format such as PDF, RTF, or HTML is the better choice. There are free libraries available for all of these. In the cases of RTF and HTML, the standard JDK provides the javax.swing.text package to manipulate the file formats. A rule of thumb for creating Word documents is: Will the eventual recipients of these documents want to edit them? If not, the PDF or HTML format is a better choice. If they do wish to edit them, consider using RTF instead of the Word file format.

mark

HOP Newsletter
Sign up to get the latest on sales, new releases and more...