Text box won't grow

A

anthony

In Access 2007 take an unbound report and put a textbox in the detail
section. Set the textbox to grow/shrink. In the onPrint event, create
a large string variable and bung it into the textbox. The textbox does
not grow. I have to explicitly size it in design view. My problem is
that I need several of these with page breaks between each one and the
detail section will not allow it as its size would exceed 55.5cm

Any advice?

TVM - Anthony
 
R

Rick Brandt

anthony said:
In Access 2007 take an unbound report and put a textbox in the detail
section. Set the textbox to grow/shrink. In the onPrint event, create
a large string variable and bung it into the textbox. The textbox does
not grow. I have to explicitly size it in design view. My problem is
that I need several of these with page breaks between each one and the
detail section will not allow it as its size would exceed 55.5cm

Any advice?

TVM - Anthony

Have you tried the Format event rather than the Print event?
 
A

anthony

Have you tried the Format event rather than the Print event?

Well, blow me down. I thought I'd tried that but I clearly hadn't as
it works! Is it by design that it doesn't work using onPrint?

Thanks very much

A
 
R

Rick Brandt

anthony said:
Well, blow me down. I thought I'd tried that but I clearly hadn't as
it works! Is it by design that it doesn't work using onPrint?

As the names of the events imply "Formatting" is still occurring in the
Format event whereas the Print event occurs AFTER all formatting is done.
 
A

anthony

As the names of the events imply "Formatting" is still occurring in the
Yes, that makes sense. I very much appreciate your help

Anthony
 

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