I realize this may not be the best place to post this, but I was at a loss
as to where to go, so...
I'm trying to merge two separate RTF files (created in Word) into one Word
document. I'd like to put a "next page" section break between each document
so that headers and footers can differ between sections. I've got the
documents merging, but I can't seem to figure out how to insert the section
break.
I had actually found the following command: \sect\sectd\sbkpage to insert a
next page section, but when I insert it, it doesn't reset the header and
footer, so I was figuring I did something wrong. Does there need to be a
group delimiter around the section and the text in that section?
I.e., {\sect\sectd\sbkpage blah blah blah, here's my text}
Can anyone help?
Peter Jamieson - 02 Jun 2004 10:17 GMT
I'm not an rtf expert - all I usually do is create a small sample document
and try to work out what chunks you need to achieve a particular effect.
Doing that suggests that what you need is to finish each section with:
last bit of text in the section \sect }
then start the new section with e.g.
\sectd \linex0\endnhere\sectdefaultcl
or
\sbkodd\linex0\endnhere\sectdefaultcl
etc. depending on the section break type. Then, if you have a new header in
the new section, have a header block, such as
{\header \pard\plain \s15\ql
\li0\ri0\widctlpar\tqc\tx4153\tqr\tx8306\nooverflow\faroman\rin0\lin0\itap0
\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {s1 header
\par }}
If you have a new footer in the new section, have a new footer block along
similar lines.
Then get straight into the body of the new section, e.g. my experiment has:
\pard\plain \ql \li0\ri0\widctlpar\nooverflow\faroman\rin0\lin0\itap0
\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033
{first bit of text in the new section...

Signature
Peter Jamieson
> I realize this may not be the best place to post this, but I was at a loss
> as to where to go, so...
[quoted text clipped - 13 lines]
>
> Can anyone help?