I am trying to create an HWPFDocument object purely in java code, by writing
contents to the file in steps.

How may I create the correct header data, into an MSWord 97 and later file,
using the HeaderBlockWriter?

/*
HeaderBlockWriter wordHeaderBlock = new HeaderBlockWriter();


wordHeaderBlock.setBATBlocks(0,0);


for(int i = 1; i<110;i++)
{

wordHeaderBlock.setBATBlocks(i,i++);

}

*/

I read this from an empty word 97 style file.  How may I

write the correct header into a blank starting file?




Reply via email to