OnPage event

P

Paradigm

I am using the OnPage event when previewing a report to change the picture
(background image) so that the first page has a different image to all
subsequent pages. This works on the page preview but when I create a
snapshot report the OnPage event does not seem to fire and the first page
image is on all the pages.
Does the onpage event work with snapshot reports?
Is there another way to change the image?
Thanks.
Alec
 
S

SA

Don't use the page event, its unreliable in certain situations as you've
found. Use the On Print event of the section that contains the image.
Simply wrap your image setting code in:

If Me.Page = 1 Then

Else

End if
 
P

Paradigm

I have tried putting code in various onprint and onformat sections but I am
unable to get the background picture to change.
If in the onpage event I change the picture this works except for the
snapshot report
If in the onpage event I put code to check the page number and set the
picture accordingly this does not work at all and the picture is set to the
default on all pages.
Alec
 

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