Insert Section Break in RTF?

D

Diane Yocom

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. Can anyone help?
 
A

Aaron [SQL Server MVP]

You might want to try a Word newsgroup. The key is that you need to figure
out the code for a section break, not the ASP code to insert it.
 
D

Dave Anderson

Diane said:
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. Can anyone help?

http://search.cpan.org/dist/RTF-Writer/lib/RTF/Cookbook.pod#Paragraph_and_Block-Level_Formatting



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
D

Diane Yocom

Thanks for the response.

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}
 
D

Diane Yocom

I'll forward there too. Didn't figure a Word group was necessarily a sure
thing, since RTF isn't solely a Word standard.

Thanks,
Diane Y.
 
A

Alan Howard

I downloaded the RTF spec from MS some time ago and quickly got tired of
trying to trying to understand it. It sounds gash - but the best approach
I've found is to generate and save one document, make the change you
require, save the new file, and then diff them (normally this is a manual
process) to spot the changes. Normally a certain amount of artistic license
(and trial and error) is required to interpret and clean up what you see.

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top