Re: pd_Document question


Subject: Re: pd_Document question
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Tue Jun 05 2001 - 09:48:24 CDT


> The goal: insert the header or footer before the current section because
> in
> RTF the header and footer are defined within the section (which at this
> time
> have been append to the document).

Hi Hub,

I don't think that you want to do exactly this, but there might be alternatives:

1) Add a header & footer tag to every created section. If no header/footer is
defined, write in a blank header/footer section, else create the header/footer
from the existing data (cache it maybe). Write out the header/footer after the
current section.

<section header="header1" footer="footer1">
</section>
<section name="header1">
<p>foo bar</p>
</section>
<section name="footer1">
<p/>
</section>

2) Use something like what fv_View does to get the current section & add a
header/footer to it.

create section 'a'
create footer '1'
create header '1'

select section 'a'
add the header & footer rules

3) other...

dom



This archive was generated by hypermail 2b25 : Tue Jun 05 2001 - 09:48:45 CDT