Can I ask about the complexity of the files you wish to generate please? HWPF is an immature api - the lead developer was offered a job that entailed signing a non-disclosure agreement and he was forced to abandon working in it - and it may not be possible to use it to generate the files you wish. Whilst it has been a long time since I ran these tests against the API, I found a problem applying more than one 'treatment' to some text. It was possible to make a piece of text bold OR to set it's font OR it's colour but, if I tried to do more than one of these operations to the same piece of text HWPF threw an exception. In addition, whilst I have used the api to create files containing text and tables, I have not yet tried to include a list. Looking at the javadoc, I think it is possible - create an instance of the HWPFList class, register that with a Range (Paragraph say), get at the ListData object encapsulated by the HWPFList object and then modify it - but I have never tried to do this and do not know if it will work at all.
Can you use XWPF - which I suspect may be more ready for serious use - to create the OOXML based docx files or do you have to generate the older, binary, .doc files? If you have to use HWPF can you devote any time to helping develop the API? If you could offer help working on and supporting HWPF, I am confident that there are many people who would be very grateful. Yours Mark B Prathap Iruthayaraj wrote: > > Hi All, > > Is it possible to create a MS Word Document using HWPF (POI)? > > I have an html page which contains of introduction text on the screen, i > need to generate a MS Word Document with that text, > > I need to generate bullet and numberings too. > > If there are any sample code exist, please provide me the link as > reference. > > Thanks, > Prathap > > -- View this message in context: http://old.nabble.com/Need-help-to-create-MS-Word-Doc-using-POI-%28HWPF%29--tp28363016p28373735.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
