change textbox property

R

Richard

Hi

Is there a way to check for a value at detail-onprint, if value true, stop
print, go back to format to change textbox property, and print again.

I have a check slip report with text box that is aligned to the 'pay to'
field. So, if the recipient's name is very long, it will grow to text under
the line. What I want is if the name is long enough to expand to the next
line, is push up the textbox so the second line is on the check line. Hope
you understand what I am trying to say here. :)

I think the len function will be able to achieve what I want but I think it
is not fool-proof enough.

Any ideas
Many thanks in advance
 
M

Marshall Barton

Richard said:
Is there a way to check for a value at detail-onprint, if value true, stop
print, go back to format to change textbox property, and print again.

I have a check slip report with text box that is aligned to the 'pay to'
field. So, if the recipient's name is very long, it will grow to text under
the line. What I want is if the name is long enough to expand to the next
line, is push up the textbox so the second line is on the check line. Hope
you understand what I am trying to say here. :)

I think the len function will be able to achieve what I want but I think it
is not fool-proof enough.


You must do all this in the Format event (the Print event is
too late).

The Len function would only work for a fixed width font. If
you are using a proportional font, then use the
fTextWidthHeight function at www.lebans.com to determine the
height of the text.
 
R

Richard

Many thanks Marsh

I will try it out.

Richard

Marshall Barton said:
You must do all this in the Format event (the Print event is
too late).

The Len function would only work for a fixed width font. If
you are using a proportional font, then use the
fTextWidthHeight function at www.lebans.com to determine the
height of the text.
 

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