| View previous topic :: View next topic |
| Author |
Message |
aloiziops Power User

Joined: 07 Jul 2006 Posts: 52
|
Posted: Wed Nov 08, 2006 8:25 am Post subject: How apply a template in document using OO API |
|
|
| I am merging some documents. Then I created a Template where I configured Line Spacing, Left Margin and Right Margin. When a merge the documents the text formating should follow the template but it doesn't follow. What should I do? |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3531 Location: Hamburg, Germany
|
Posted: Wed Nov 08, 2006 11:28 am Post subject: Re: How apply a template in document using OO API |
|
|
| aloiziops wrote: | | I am merging some documents. Then I created a Template where I configured Line Spacing, Left Margin and Right Margin. When a merge the documents the text formating should follow the template but it doesn't follow. |
I would say that merging documents means not automatically to assign formattings from one document to another document.
| aloiziops wrote: | | What should I do? |
I think you have to assign page and paragraph formattings to your merged document.
If you want to do this in Java, you should take a look at the OOo Developer's Guide. Although it might be a hard read, the paragraph 7.3.2 Formatting sounds like what you need.
Regards
hol.sten |
|
| Back to top |
|
 |
|