You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by XML User <pa...@yahoo.com> on 2010/06/18 17:29:03 UTC

Merging Documents HWPF

Hi Folks,

I have researched a lot on this.. but didn't find any satisfactory answer
yet. So finally posting here to get some help. 

My objective is to generate a mail merge with APACHE POI.
System Specification: 
JDK 1.4
poi-3.2-FINAL-20081019.jar
poi-scratchpad-3.2-FINAL-20081019

Below is sample of my code.
http://old.nabble.com/file/p28927519/Test.java Test.java 

ISSUES ARE:
	1) I NEED TO GET SAME FORMATTING AS doc OBJECT TO BE WRITTEN INTO newDoc
             2) NEED TO PUT PAGE BREAK AFTER EACH doc COPIED TO newDoc

Please help me to merge Document objects together and Pagebreak issue.

Appreciate your help. 
-- 
View this message in context: http://old.nabble.com/Merging-Documents-HWPF-tp28927519p28927519.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Merging Documents HWPF

Posted by MSB <ma...@tiscali.co.uk>.
This is going to be a bit of bad news on the one hand and an appeal for help
on the other I am afraid.

The problem you will face is that HWPF does not currently allow you to apply
more than one treatment to a piece of text. By this, I mean that you could
set the font OR you could set the colour OR you could set the size but if
you tried to do any two of these operations on the same peiec of text, the
API will throw an exception. That's the bad news, now for the appeal.

HWPF is very much in need of support from developers willing and able to
commit some time to the project. It stalled once the lead developer signed a
non-disclosure agreement with Microsoft upon accepting a new position and it
really does need someone willing to research the file format, look through
the existing codebase with a critical eye in order to fix the outstanding
issues and then to develop new features. If HWPF is important to you - and
it sounds as though it may be - would you be willing to do this?

Yours

Mark B


XML User wrote:
> 
> Hi Folks,
> 
> I have researched a lot on this.. but didn't find any satisfactory answer
> yet. So finally posting here to get some help. 
> 
> My objective is to generate a mail merge with APACHE POI.
> System Specification: 
> JDK 1.4
> poi-3.2-FINAL-20081019.jar
> poi-scratchpad-3.2-FINAL-20081019
> 
> Below is sample of my code.
>  http://old.nabble.com/file/p28927519/Test.java Test.java 
> 
> ISSUES ARE:
> 	1) I NEED TO GET SAME FORMATTING AS doc OBJECT TO BE WRITTEN INTO newDoc
>              2) NEED TO PUT PAGE BREAK AFTER EACH doc COPIED TO newDoc
> 
> Please help me to merge Document objects together and Pagebreak issue.
> 
> Appreciate your help. 
> 

-- 
View this message in context: http://old.nabble.com/Merging-Documents-HWPF-tp28927519p28927978.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org