| View previous topic :: View next topic |
| Author |
Message |
arwyn Newbie

Joined: 11 Nov 2004 Posts: 3 Location: Moscow, Russia
|
Posted: Thu May 19, 2005 5:34 am Post subject: How do you generate text from variables on document load |
|
|
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 |
|
 |
arwyn Newbie

Joined: 11 Nov 2004 Posts: 3 Location: Moscow, Russia
|
Posted: Fri May 20, 2005 1:07 am Post subject: |
|
|
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 |
|
 |
|