BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Determing how far away you are until the end of the page

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Brian Hollister
Guest





PostPosted: Fri Sep 02, 2005 8:04 pm    Post subject: Determing how far away you are until the end of the page Reply with quote



Hi,

I push text into template word docs. Sometimes, "sections" start at the end
of a page and flow onto the next. I would like the document constructed so
that if I am going to start a section then the next line starts on a new
page that the section start would actually move to the next page.



Section Start
--------------- Page End
This text belongs to the section on previous page


Instead I want it like this

-------------- Page End
Section Start
This text is where it should be


The problem is how do I know when I am at the bottom of a page?

Thanks,

brian


--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com


Back to top
Ben Hochstrasser
Guest





PostPosted: Fri Sep 02, 2005 8:22 pm    Post subject: Re: Determing how far away you are until the end of the page Reply with quote



Brian Hollister wrote:

Quote:
I would like the document constructed so
that if I am going to start a section then the next line starts on a new
page that the section start would actually move to the next page.

Why don't you use a template with a proper paragraph style? "Page break
before" comes to mind.

--
Ben

Back to top
Oliver Townshend
Guest





PostPosted: Fri Sep 02, 2005 11:01 pm    Post subject: Re: Determing how far away you are until the end of the page Reply with quote



Quote:
I push text into template word docs. Sometimes, "sections" start at the
end
of a page and flow onto the next. I would like the document constructed so
that if I am going to start a section then the next line starts on a new
page that the section start would actually move to the next page.

Any range or selection has a property called Information, which can tell you
an awful lot of different things like document position, lines etc. You may
find it useful.

Personally I don't think it's worth the effort. Word will always give you
blank pages, or toss paragraphs on to subsequent pages and leave odd gaps.
You can use things like Paragraph keep with next and so forth to control it,
but when you are generating documents automatically, one change here will
wreck another change elsewhere. Only a human being editing the document can
reconcile the contradictions.

Oliver Townshend



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.