Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Word Automation. To fix the text always at the top of page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nazim - 11 Oct 2006 05:51 GMT
I am working on word automation. I found a control on net which gives you to
edit a word document with programming. Problem is There are 5 headings in my
document. And i have to paste paragrahph under the headings using vb.net.
Things are working fine. But one of my heading text i.e. Recommendation
should always stand at the top of the page regardliess of how many paragrapsh
are entered.

For example.

Protection:

Income:

Retirement:

Recommendation.:

Note: recommendation heading text is on the new page.

These are the headings text. If I enter paragraphs under protection heading
text. It will ovbvioously scroll down and move other contents level below
depending upon the text. Supoose if i am entering paragraphs and about to
reach at the recommendation section, it should shift recommendation heading
to the next page at the top. In this way This heading will always stay at
top. Kindly help
Jonathan West - 11 Oct 2006 08:35 GMT
>I am working on word automation. I found a control on net which gives you
>to
[quoted text clipped - 26 lines]
> to the next page at the top. In this way This heading will always stay at
> top. Kindly help

For that heading, set the ParagraphFormat.PageBreakBefore property to True.
that will put the heading at the start of the next page under all
circumstances.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.