Solved

Dynamically re-size page footer to display sub-report

Posted on 2009-04-07
4
620 Views
Last Modified: 2013-11-28
I am trying to embed a sub-report within the page footer of my report.

An issue has presented due to the variable height of this sub-report, I seem unable to
force the page footer section to dynamically resize at runtime.

I note that the 'CanGrow' & 'CanShrink' properties are not available for this section, but
surely there must be some way of making the section fit the sub-report?

I've tried the 'AutoHeight' property to no effect.
0
Comment
Question by:MISLtd
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 24087690
I''m afraid what you are asking is not possible in Access.
Page footers are fixed size.

You will have to look at using a group footer or report footer secton for your subreport.
0
 
LVL 1

Author Comment

by:MISLtd
ID: 24089280
I had hoped that this was not the case...

At least I can justify to an extent the wasted time I've spent trying to achieve this goal.

I have actually managed to progmatically alter the page footer section height at runtime ( http://msdn.microsoft.com/en-us/library/aa206046(office.10).aspx ), however determining the sub-reports runtime size seems to be a little more difficult.

Ill battle on for now.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 24089563
If you try to adjust the height at runtime you need to make the change in the pageheadersection format event procedure, otherwise you will find you are always one page behind the code.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24090902
MISLtd,

You did not provide any info on the specifics of the report so I will take a few shots.

The Page footer is not made to display Totals or contqain subreports.
What is the reason why you cannot put the subreport in the "Report" footer?

Another option, if practical:
To work around this, try grouping the report and put the subreport in the Group footer.

Then set the: "Force New Page"  Property to:  "After Section".

This will but the subreport at the bottom of each groups last page.

If niether of these will help you, then can you explain what the Main report and the subreport are trying to display, and describe exactly what you want the report to look like.

Thanks

JeffCoachman
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question