Categories > [old] TbsOoo & TinyDoc >

Why do headers and footers of OpenOffice file not fill the variables

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: A.van Harselaar
Date: 2006-09-14
Time: 20:07

Why do headers and footers of OpenOffice file not fill the variables

Hello,
When I have some [var] in a header or footer then it wil not merge.
Can you tell me why.
I'm working with a OpenOffice candidate in Dutch language.
Antoon
By: Olivier Loynet
Date: 2006-09-15
Time: 07:40

Re: Why do headers and footers of OpenOffice file not fill the variables

Hi,

For merging data in yours headers and footers, you'll need to merge
'meta.xml’ or/and 'styles.xml', depend if it's a calc or write document

// for merging the meta.xml
$OOo->LoadXmlFromDoc('meta.xml');
$OOo->SaveXmlToDoc();

// for merging the styles.xml
$OOo->LoadXmlFromDoc('styles.xml');
$OOo->SaveXmlToDoc();

Only use global var in header or footer like [var.toto]

Olivier