Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping a continuous set of paragraphs together
Message
From
06/12/2002 10:30:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Keeping a continuous set of paragraphs together
Miscellaneous
Thread ID:
00730317
Message ID:
00730317
Views:
49
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
Map
View

Click here to load this message in the networking platform