R
rsocol
I want to print a report only if it fits on one page. If it has more
than one page, I want to display a msgbox and cancel the printing of
the report.
My plan was to make a report footer and a page footer in the report; if
the page footer's print event appears before the report footer's print
event, then I want to cancel the printing of the entire report. If I
use the Cancel parameter of the Print event, Access only cancels
printing for that section. How can I cancel the printing of the entire
report ?
The detail section has some controls that can grow, so I cannot rely on
a "standard" number of details that fit on one page (if all my details
would have a fixed height, I could have checked the number of details
that will be printed in the Report_Open event and cancel it here... but
I have details that have variable heights).
I'm using Access XP (with ADP-s).
Razvan
than one page, I want to display a msgbox and cancel the printing of
the report.
My plan was to make a report footer and a page footer in the report; if
the page footer's print event appears before the report footer's print
event, then I want to cancel the printing of the entire report. If I
use the Cancel parameter of the Print event, Access only cancels
printing for that section. How can I cancel the printing of the entire
report ?
The detail section has some controls that can grow, so I cannot rely on
a "standard" number of details that fit on one page (if all my details
would have a fixed height, I could have checked the number of details
that will be printed in the Report_Open event and cancel it here... but
I have details that have variable heights).
I'm using Access XP (with ADP-s).
Razvan