Bottom of Document

N

Nick

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.
 
J

Jean-Guy Marcil

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.

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
N

Nick

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.
 
J

Jean-Guy Marcil

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...

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
N

Nick

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.
 
J

Jean-Guy Marcil

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?

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
N

Nick

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.
 
J

Jean-Guy Marcil

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


--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top