PC Review


Reply
Thread Tools Rate Thread

Auto-expand page header of report in response to test box "can grow"?

 
 
plh
Guest
Posts: n/a
 
      26th May 2011
Hi All,
I have a text box at the bottom of the page header. The text box's
"can grow" property is set to yes, but the page header prevents it
from growing. Changing page header property to "Auto Height" to yes
does not do it. Is there some way to make this happen?
Thanx,
-plh
 
Reply With Quote
 
 
 
 
Access Developer
Guest
Posts: n/a
 
      27th May 2011
"plh" <(E-Mail Removed)> wrote

> I have a text box at the bottom of the page
> header. The text box's "can grow" property
> is set to yes, but the page header prevents it
> from growing. Changing page header property
> to "Auto Height" to yes does not do it. Is
> there some way to make this happen?


The property you desire is "Can Grow" for the Section, which in Classic
Access (2003 and earlier) Reports is available in the Header and Footer
Sections for Report, Group, and in the Detail Section. I presume (it's only
my guess) that it was omitted from the Page Header and Page Footer because
they are not "data connected" but "report format connected".

Given that is the situation, are you sure there isn't some alternative to
using a CanGrow Control in the Page Header? The way I tested this, I had to
write VBA code to store (arbitrary) text in a Can Grow Control to accomplish
the test (and I set the value of the Control in the Format event of the
PageHeaderSection).

You can set the Height property of the PageHeaderSection, in code, if you
keep elsewhere the original size of the PageHeaderSection less the Height of
your CanGrow Control. It will take some concentration and care in getting
all the nomenclature correct, and using VBA code in the Format and Print
events of the PageHeaderSection. I validated that it could be done, using a
sample report framework, and it was neither as intuitive, nor as simple, as
I'd hoped it would be.

--
Larry Linson, Microsoft Office Access MVP
Co-author: "Microsoft Access Small Business Solutions", published by Wiley
Access newsgroup support is alive and well in USENET
comp.databases.ms-access


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT: Crystal Reports=> "Report Header" in the middle of the first page Lukas Microsoft C# .NET 0 4th Sep 2008 09:58 AM
Can-Grow problem "columns"? access 2003 report PK Microsoft Access Reports 3 3rd Jul 2008 07:48 PM
In a report have a combo box use the "can grow" feature =?Utf-8?B?QmlsbA==?= Microsoft Access 1 1st Aug 2006 09:01 PM
Why will a report cut off a memo field set to "can grow" =?Utf-8?B?R2FpbA==?= Microsoft Access 7 14th Feb 2006 01:56 PM
How to restore the "Insert Auto Text" menu in the "Header & Footer" tool bar???? Gilles Desjardins Microsoft Word New Users 3 16th May 2005 02:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 PM.