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 do you generate text from variables on document load

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


Joined: 11 Nov 2004
Posts: 3
Location: Moscow, Russia

PostPosted: Thu May 19, 2005 5:34 am    Post subject: How do you generate text from variables on document load Reply with quote

Preamble: In the OpenDocument format simple variable fields not only have values, but text associated with them. The text is used when the document is first loaded, so that no heavy processing needs to be done.

My question is: How do you force OO.o2 to generate those text fields from the variables values applying the specified styles(ie display them), when the document is first loaded ( The document in question was externaly generated and does not contain the text fields. )?
Back to top
View user's profile Send private message
arwyn
Newbie
Newbie


Joined: 11 Nov 2004
Posts: 3
Location: Moscow, Russia

PostPosted: Fri May 20, 2005 1:07 am    Post subject: Reply with quote

Did it. Quite simple really.

Answer: In content.xml you just add the node <script:event-listener script:language="ooo:script" script:event-name="dom:load" xlink:href=".uno:UpdateFields"/> to the node office:document-content/office:scripts.
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