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 / December 2006

Tip: Looking for answers? Try searching our database.

Bottom of Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 07 Dec 2006 15:12 GMT
How do I force my text to the bottom of the document no matter what is above
it?  I want to place an Image or Data at the top of varying length but I
want this specific text (4 rows) at the bottom left.
Jean-Guy Marcil - 07 Dec 2006 15:36 GMT
Nick was telling us:
Nick nous racontait que :

> How do I force my text to the bottom of the document no matter what
> is above it?  I want to place an Image or Data at the top of varying
> length but I want this specific text (4 rows) at the bottom left.

You can use a textbox with a relative position to the page instead of to the
paragraph (Format > Text Box... > Layout tab > Advanced... button > Set both
Horizontal and Vertical position relative to page). Then remove the textbox
borders.

But, personally, I prefer using Frames (Forms Toolbar) because you can
create a style that will apply the frame to any selected text. If you apply
a style that includes the frame to a selected text, that text will move
automatically to the position dictate by the frame (again in this case I
would set the position relative to page).

The easiest way to create such a style is to create a framed paragraph,
place it where you want it, then select it (making sure to include the last
inside the frame) and then do Format > Style and Formatting... to create a
style based on the selected text.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Nick - 07 Dec 2006 15:43 GMT
I appreciate it.  I meant to say I was using VB.NET to accomplish this but I
believe the base logic will remain the same.

What is the best way to set the Text Box at the bottom with VB.NET?  I think
I am missing something particular in my code or I am making it too
difficult.

> Nick was telling us:
> Nick nous racontait que :
[quoted text clipped - 18 lines]
> last inside the frame) and then do Format > Style and Formatting... to
> create a style based on the selected text.
Jean-Guy Marcil - 07 Dec 2006 17:04 GMT
Nick was telling us:
Nick nous racontait que :

> I appreciate it.  I meant to say I was using VB.NET to accomplish
> this but I believe the base logic will remain the same.

Sorry, mu crystal ball was at the cleaners! ;-)

> What is the best way to set the Text Box at the bottom with VB.NET? I
> think I am missing something particular in my code or I am making
> it too difficult.

Again, the easiest would be to create a style with a frame and then apply
that style to the target text. It will automatically be placed were you want
it(according the frame settings).

Otherwise, look up the Top and Left properties of the Shape object (A
textbox is a Shape).

Not sure abut the exact VB.Net code... I have only used VB Classic...

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Nick - 07 Dec 2006 19:26 GMT
Thanks again.

Can I ask what you would do in VB Classic?  I can play around with it and
see what I can figure out but I thought it wouldn't hurt asking.

I think a template could make this a little easier.

> Nick was telling us:
> Nick nous racontait que :
[quoted text clipped - 16 lines]
>
> Not sure abut the exact VB.Net code... I have only used VB Classic...
Jean-Guy Marcil - 07 Dec 2006 19:31 GMT
Nick was telling us:
Nick nous racontait que :

> Thanks again.
>
> Can I ask what you would do in VB Classic?  I can play around with it
> and see what I can figure out but I thought it wouldn't hurt asking.

Using the complicated text box approach or the easy frame solution?

> I think a template could make this a little easier.

???
I thought you had a template.
What are you trying to do?
Why can't you use a template?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Nick - 07 Dec 2006 19:46 GMT
I can use a template but I was trying to avoid it :)

In a nutshell, I'm fetching data from a DB and since I don't know how much I will have and I need particular data at the bottom, I have to force it there no matter the DB result.

I'm open to suggestions on geting it most efficient.
Jean-Guy Marcil - 07 Dec 2006 21:04 GMT
Nick  was telling us:
Nick  nous racontait que :

> I can use a template but I was trying to avoid it :)

Why?

> In a nutshell, I'm fetching data from a DB and since I don't know how
> much I will have and I need particular data at the bottom, I have to
> force it there no matter the DB result.
>
> I'm open to suggestions on geting it most efficient.

Using a template will make your life much easier.

Create a template formatted for receiving the DB stuff.
In that template, create a style using a frame for the stuff you want at the
bottom of the last page.
Create a document based on the template.
Insert the DB stuff
Insert the text that should go at the bottom and apply the Frame style to
that text.

Dim rgeBottomText As Range

Set rgeBottomText = ActiveDocument.Range

With rgeBottomText
   .Collapse wdCollapseEnd
   .InsertAfter "New Text"
   .Style = "Heading 1"
End With

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.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.