You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by gipsy <sp...@gmail.com> on 2010/11/02 11:57:06 UTC

Change paper-format for Word

Hi

google only knows how to change the paper-format for excel-documents with
XSSF. How is this possible for word-documents with XWPF?

best regards

Thomas
-- 
View this message in context: http://apache-poi.1045710.n5.nabble.com/Change-paper-format-for-Word-tp3246506p3246506.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: Change paper-format for Word

Posted by gipsy <sp...@gmail.com>.
Are there no java-methods supported by apache POI to change the paper-size?
-- 
View this message in context: http://apache-poi.1045710.n5.nabble.com/Change-paper-format-for-Word-tp3246506p3249673.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: Change paper-format for Word

Posted by Nick Burch <ni...@alfresco.com>.
On Wed, 3 Nov 2010, gipsy wrote:
> I have to create doc-files - not docx-Files. So I need to use HWPF - 
> same problem, other api. How can I solve this problem now?

First up, I'd suggest you figure out how to do it with .docx - work out 
which bit of the file holds that information. Armed with that, you can 
probably find a suitable HWPF property that can be set. However, we'd need 
to know what .docx does (which is easier to find out!) before you'll have 
all that much luck finding the .doc property

Nick

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


Re: Change paper-format for Word

Posted by gipsy <sp...@gmail.com>.
OK, Sorry

I have to create doc-files - not docx-Files. So I need to use HWPF - same
problem, other api. How can I solve this problem now?
-- 
View this message in context: http://apache-poi.1045710.n5.nabble.com/Change-paper-format-for-Word-tp3246506p3248283.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: Change paper-format for Word

Posted by Nick Burch <ni...@alfresco.com>.
On Tue, 2 Nov 2010, gipsy wrote:
> google only knows how to change the paper-format for excel-documents 
> with XSSF. How is this possible for word-documents with XWPF?

I would suggest you create a simple file in word in one paper format, then 
save a copy in the other format. Unzip these two .docx files (.docx is a 
zip of xml files), and use diff to spot what differs. You should be able 
to find xmlbeans objects to manipulate the attributes

Nick

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