By: william
Date: 2010-06-23
Time: 13:33
|
Merging into .odt header
I want to merge some data fields into the header of a writer document, but when I try to do that, I get the field names with no merge. If I place the same template field into the body of the document, it merges fine.
Suggestions ?
bill
|
By: Skrol29
Date: 2010-06-23
Time: 20:55
|
Re: Merging into .odt header
Hi william,
The header of an ODT document is saved into the subfile "styles.xml".
Since this subfile is not laded by default when the archive is loaded, you have to load it manually.
For example:
$TBS->LoadTemplate('#styles.xml');
|
It is better to do it just before the last $TBS->Show(), because this command changes the current subfile for the merge.
|
By: william
Date: 2010-06-24
Time: 12:49
|
Re: Merging into .odt header
Thank you very much.
I had to do it before I tried to merge to those fields though. (not using onshow).
bill
|
|
Posting in progress.
Please wait...
|