On Tue February 7 2006 00:58, + John M. Dlugosz wrote: > [ MODERATED ] *********************** > I made a "letter" template for Writer that includes a "User Defined > Property" called DocRef. > > > > When I create a new document based on the template, this field is not taken > from the template, but rather it still has "Info 1" through "Info 4". > > > > It still does that (or doesn't do that) in version 2.0. > > > > How can I run a script when a document is first created, to populate these > things programmatically? >
You can do this by associating a macro with the creation event. Tools -> Configure -> Events -> Create Document. For more info on macros you should ask on [email protected] and ask to be CC:ed as you may not see all replies unless you subscribe to that list by sending an email to [EMAIL PROTECTED] and reply to the confirmation request email. Please reply to [email protected] only -- CPH : openoffice.org contributor Maybe your question has been answered already? http://user-faq.openoffice.org/#FAQ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
