How change Report's PageHeader Height programatically in PageHeaderSection_Format?

P

paul.schrum

Developing in Access 2007 to extend a 2003 .mdb file.

I would like to change the Height of the PageHeader of a report
depening on whether or not it is Page = 1.

But the Object Browser says Report.PageHeader is type Byte, so there
is no .PageHeader.Height or anything else.

Further, when I say

Dim i as Integer
i = [Report_MyReport].PageHeader

i = 0.

This is when I am in Private Sub PageHeaderSection_Format(Cancel As
Integer, FormatCount As Integer)

Is there any way I can do what I need to do, change the Page Header
size programatically?

Thanks in advance for all help.

- Paul Schrum
Raleigh, NC
 
M

Marshall Barton

Developing in Access 2007 to extend a 2003 .mdb file.

I would like to change the Height of the PageHeader of a report
depening on whether or not it is Page = 1.

But the Object Browser says Report.PageHeader is type Byte, so there
is no .PageHeader.Height or anything else.

Further, when I say

Dim i as Integer
i = [Report_MyReport].PageHeader

i = 0.

This is when I am in Private Sub PageHeaderSection_Format(Cancel As
Integer, FormatCount As Integer)

Is there any way I can do what I need to do, change the Page Header
size programatically?

The default name of the page header section is
PageHeaderSection, so you should be using:
Me.PageHeaderSection.Height
or
Me.Section(1).Height
 

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