OpenOffice-OODoc - Accessing contents of headers and footers

Posted on Wed Sep 14 18:41:47 2005 by bob
Accessing contents of headers and footers
I'm puzzled as to how I can take a header(or footer) from a sxw file and then modify it.
I tried:
==== my $style_file="/varsav/office/dictation/templates/oodoc_guide.sxw"; my $doc = ooDocument(file => $style_file, member=>CONTENT); my $para = $doc->getHeaderParagraph(1,1); print "$para"; exit; ====
I tried various combinations for the page/number values to getHeaderParagraph without any luck. I tried calling ooDocument with
member=>STYLE
as well.
[ The motivation for this is to have a standard header that might contain the token 'TOPIC' and then replace it with the actual topic for a particular document. ]
Thanks for any help.
Bob
Direct Responses: 989 | 1006 | Write a response