Hi folks,
I have a very strange "intermittent" problem with some Access 97 reports, so I'm hoping someone has seen this before.
In my standard report Vba coding I have used the OnFormat and OnPrint events to control things like forced starting page number, conditional page breaks, facing page exceptions etc., and the OnPage event to draw graphic page columns as the final step.
The starting page number is always forced to an odd page; if a particular data group finishes on an odd page I create a different even facing page with parts of the page header blanked out by setting the properties of a masking box to visible.
This always works perfectly in every report in preview. On some report, when the actual report is printed two things can happen: 1) the first page has the parts of the header blanked out, but sucessive pages are formatted OK. 2) When printed, one report type always starts from page 1 regardless of the forced page number. However, if in preview you scroll through some of the pages, then go back to the start before printing, the problem disappears! (It's not printer-dependent)
It seems as though the OnPrint /OnPage setup conditions are not always being recognised at run time.
Any ideas?
Regards,
Brian
I have a very strange "intermittent" problem with some Access 97 reports, so I'm hoping someone has seen this before.
In my standard report Vba coding I have used the OnFormat and OnPrint events to control things like forced starting page number, conditional page breaks, facing page exceptions etc., and the OnPage event to draw graphic page columns as the final step.
The starting page number is always forced to an odd page; if a particular data group finishes on an odd page I create a different even facing page with parts of the page header blanked out by setting the properties of a masking box to visible.
This always works perfectly in every report in preview. On some report, when the actual report is printed two things can happen: 1) the first page has the parts of the header blanked out, but sucessive pages are formatted OK. 2) When printed, one report type always starts from page 1 regardless of the forced page number. However, if in preview you scroll through some of the pages, then go back to the start before printing, the problem disappears! (It's not printer-dependent)
It seems as though the OnPrint /OnPage setup conditions are not always being recognised at run time.
Any ideas?
Regards,
Brian