On Wed, 2006-03-22 at 07:20 -0800, Xavier Marichal wrote:
> Thank you, Jean.
> I've never used macros and cannot find the explanation in the help: how 
> do I create a macro with the code provided hereunder?
> Xavier
> 
> >> - despite what is said in the book, when I modify the templates upon 
> >> which all my docs are based, I'm not asked anything when re-opening a 
> >> document based on it. And the new styles are not present.
> >
> >
> > There is a bug in OOo2.0.2 that stops docs updating from
> > templates. Here is what Mathias from the developers' list wrote
> > to me. (I posted this to the Authors list earlier today.)
> >
> > ---------------------
> > The problem lies in documents created with OOo2.0.2. A fix will
> > be available for 2.0.3. You will have to fix documents created
> > with 2.0.2 though because the fix only can prevent the creation
> > of further documents containing the error. Fortunately you can
> > fix your documents already now and get the updating procedure
> > back. Please do it in the following way:
> >
> > Load the document you want to fix, execute the following macro on it:
> >
> > Sub FixDocument
> >   TemplateName = ThisComponent.DocumentInfo.Template
> >   if TemplateName <> "" then
> >     ThisComponent.DocumentInfo.Template = TemplateName
> >   end if
> > End Sub
> >
> > and then save the document. Next time when you open this document
> > you will have the update from template feature back.
> >
> > This strange looking macro will set an internal switch in the
> > document meta data that enables the template update procedure.
> > BTW: the same macro will re-enable the update procedure in case
> > you have switched it off by answering the question "do you want
> > to update your styles" with "No".
> >
> > You can execute this macro on every document if you want (e.g. by
> > assigning it to the "OnLoad" event on application level), if the
> > document is not based on a template it will not be modified by
> > this macro.
> >
> > Best regards,
> > Mathias

See if 
http://documentation.openoffice.org/faqs/word_processing/050.html helps.
-- 
PLEASE KEEP MESSAGES ON THE LIST.
OpenOffice.org Documentation Co-Lead
http://documentation.openoffice.org/ 

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

Reply via email to