CPHennessy wrote:

> 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. 

In OOo2.0.2 the field content will be taken over from the template so
you won't need the macro anymore.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to