OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How apply a template in document using OO API

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
aloiziops
Power User
Power User


Joined: 07 Jul 2006
Posts: 52

PostPosted: Wed Nov 08, 2006 8:25 am    Post subject: How apply a template in document using OO API Reply with quote

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
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Wed Nov 08, 2006 11:28 am    Post subject: Re: How apply a template in document using OO API Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group