Problem with page heading

B

Bill

When I set "cancel = true" in the report
header format, it causes the "page heading"
to be suppressed on the first of the subsequent
pages of the report. How do I get the normal
formatting of the page heading to process when
the "report heading" is cancelled?

Thanks,
Bill
 
B

Bill

I didn't post the code because it's not a code
issue, unless the simple statement "Cancel = True"
doesn't work.

Anyway, I just found that if one cancels the report
header AND the pageheader property is set to
"not with rpt hdr", the page header will be suppressed
with what would otherwise be the second page of
the report.

So, since A2003 doesn't allow assigning values to
the PageHeader object, I'll experiment a bit further
in search of a solution.

Bill
 
B

Bill

Ah! you've led me to re-think what is really
happening. In this particular report, the
report's header section necessarily consumes the
entire printed page with this particular application.
When the ReportHeader formatting is canceled,
sufficient space results wherein the detail section
will now fit and appear on the header page. And,
since the design was created with page header
property set to "not with rpt her", the first page
out of the printer only contains the contents of
the detail section, but it is what would have
otherwise been the report's header page.

The fix then, is to set Page Header to "All pages"
(can't be done in code). When the report's
"Addendum Option" is specified, by the user
from within the invoking form, the code will
set "Cancel = True" in the ReportHeader format
event and the first page to be printer will, for all
intent and purposes, be formatted exactly like
that which would have otherwise been the 2nd
page of a "full report".

Thanks,
Bill


BruceM via AccessMonster.com said:
Cancel within the context of the Format event cancels the code in the
Format
event. If there is no code there is nothing to cancel.
I didn't post the code because it's not a code
issue, unless the simple statement "Cancel = True"
doesn't work.

Anyway, I just found that if one cancels the report
header AND the pageheader property is set to
"not with rpt hdr", the page header will be suppressed
with what would otherwise be the second page of
the report.

So, since A2003 doesn't allow assigning values to
the PageHeader object, I'll experiment a bit further
in search of a solution.

Bill
Why are you cancelling? It may help if you post the code, and explain
what
[quoted text clipped - 16 lines]
Thanks,
Bill
 
B

Bill

Yes, once I realized what was really going
on, thank you, with this revision to an very
old report, it was a simple matter to make
the necessary adjustment to the Pg Hdr
properties.
Bill


BruceM via AccessMonster.com said:
Um, glad to help, but it sounds like you worked it out pretty much on your
own. Good luck with the project.
Ah! you've led me to re-think what is really
happening. In this particular report, the
report's header section necessarily consumes the
entire printed page with this particular application.
When the ReportHeader formatting is canceled,
sufficient space results wherein the detail section
will now fit and appear on the header page. And,
since the design was created with page header
property set to "not with rpt her", the first page
out of the printer only contains the contents of
the detail section, but it is what would have
otherwise been the report's header page.

The fix then, is to set Page Header to "All pages"
(can't be done in code). When the report's
"Addendum Option" is specified, by the user
from within the invoking form, the code will
set "Cancel = True" in the ReportHeader format
event and the first page to be printer will, for all
intent and purposes, be formatted exactly like
that which would have otherwise been the 2nd
page of a "full report".

Thanks,
Bill
Cancel within the context of the Format event cancels the code in the
Format
[quoted text clipped - 21 lines]
Thanks,
Bill
 

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