General information
Category:
COM/DCOM and OLE Automation
Title:
Keeping a continuous set of paragraphs together
I have a need to keep a contiguous set of paragraphs all on the same page.
The code looks basically like this ...
oRange.InsertAfter("Paragraph 1 - Some Text")
oRange.font.bold = 1
oRange.Collapse(wdCollapseEnd)
oRange.InsertAfter("Paragraph 1 - Some More Text"+CR)
oRange.font.bold = 0
oRange.Collapse(wdCollapseEnd)
Then repeat this multiple times .... for paragraphs 1 thru ?
Then I would like to gather up all of those paragraphs into a paragraphs collection (oParagraphs) and issue .... oParagraphs.KeepTogether = .t.
Any thoughts on how to accomplish this ?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only