How to centre a variable height text box on a page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The data is a memo field. Text box property CanGrow is Yes and has a fixed
width.
Example for resolution is if the text box has 3 lines then the middle (2nd)
line appears in the middle of the page vertically or if the text box has 31
lines then the 16th line appears in the middle of the page vertically.
It seems that the text box On Format event will allow the property of top to
change but the new height of the text box is known in the On Print event and
not in the On Format event, but the property of top cannot be changed in the
On Print event.
Any Help please.
 
The data is a memo field. Text box property CanGrow is Yes and has a fixed
width.
Example for resolution is if the text box has 3 lines then the middle (2nd)
line appears in the middle of the page vertically or if the text box has 31
lines then the 16th line appears in the middle of the page vertically.
It seems that the text box On Format event will allow the property of top to
change but the new height of the text box is known in the On Print event and
not in the On Format event, but the property of top cannot be changed in the
On Print event.


Stephen Lebans' TextHeightWidth function at www.lebans.com
can be used to determine the final height of the text box in
the Format event.
 
Thank you Marsh

I look at your suggestion and found "A2KVerticalJustify" function at
www.lebans.com which resolved the vertical justification. I changed my
process to design a large text box to cover the page, then call the above
function for the text box. Voila

Rgards
Gary M
 
Hey, that's good to know. I wasn't even aware of that one.
There's so much stuff at Stephen's site, I can't keep track
of it all ;-)
 
Back
Top