Can't shrink header in report by code

R

Ross

Hi,

I am trying to shrink the header in my report so I can
raise the detail section all the way up to the top of my
page. I am trying to do this through code.

I have tried the following:

Me.PageHeaderSection.Height = 0
Me.Section(acDetail).Height = 0

But my detail section still prints approximately 1/3 from
the top.

Help anyone, Thanks
Ross
 
M

Marshall Barton

Ross said:
I am trying to shrink the header in my report so I can
raise the detail section all the way up to the top of my
page. I am trying to do this through code.

I have tried the following:

Me.PageHeaderSection.Height = 0
Me.Section(acDetail).Height = 0

But my detail section still prints approximately 1/3 from
the top.

You can only change the Page Header Height in design view
(it doesn't even have the Can Grow/Shrink properties).

However, you can make the following (not the current) pages'
Page Header invisible:

Me.Section(3).Visible = False

You can also Cancel the Format event to suppress the current
page's Page Header.
 

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