Question on the "Print" event

B

Bob Howard

Is it possible for the Print event to fire more than once for a Group Footer
Section? I can see how it may happen in the Detail Section, but I'm not
concerned about that.

Here's why.

I need to capture the page number of the last page in each Group, since I
use that number elsewhere. So in my Group Footer Section's Print event, I
capture the page number and save it.

My testing so far shows that number to be reliable. But I'm just concerned
that it may go bad in some odd situations and I'll end up with the wrong
page number.

Thanks....

bob
 
M

Marshall Barton

Bob said:
Is it possible for the Print event to fire more than once for a Group Footer
Section? I can see how it may happen in the Detail Section, but I'm not
concerned about that.

Here's why.

I need to capture the page number of the last page in each Group, since I
use that number elsewhere. So in my Group Footer Section's Print event, I
capture the page number and save it.

My testing so far shows that number to be reliable. But I'm just concerned
that it may go bad in some odd situations and I'll end up with the wrong
page number.


Yes, the event can fire any number of times. Among many
other scenarios, if a section is split across multiple
pages, the events fire for each page. The usual code checks
to see if a section has an existing page no. before adding a
new entry (e.g. an index of groups).

This has nothing to do with your question, but a somewhat
related situation is that if you use Pages in a text box,
the value of Pages will be zero the first time through the
entire report.
 

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