RichardBott
MIS
I am working in Access XP and have a report which is opened in a macro following the opening of a parameter screen.
The sequence of actions in the macro is:
OpenForm (with action args: frmReportParameters, View = Form, Data Mode = Edit and Window Mode = Dialog)
OpenReport (with action args: rptCommunicationsCalendar, View = Print Preview, Window Mode normal)
Close (with action arguments Object Type = Form, Object Name = frmReportParameters, Save = No)
The preview of the report appears OK on the screen but if I try to print it from the preview using the print icon or the 'File - Print...', a very short-lived message box appears on the screen (I think it is the printer message box that normally appears) but nothing is printed and nothing is in the print queue!
If I change the OpenReport macro entry View action argument from Print Preview to Print, then running the macro prints out the report OK.
I have had this problem with both reports I have been developing today.
While I was developing this report, I printed a few test runs (before completion) using the print from the preview screen and it worked fine! I am obviously doing something later in the report development that appears to prevent the printing of the report from the preview screen. Does anyone have any ideas?
Thanks for any help you can give...
RjB
The sequence of actions in the macro is:
OpenForm (with action args: frmReportParameters, View = Form, Data Mode = Edit and Window Mode = Dialog)
OpenReport (with action args: rptCommunicationsCalendar, View = Print Preview, Window Mode normal)
Close (with action arguments Object Type = Form, Object Name = frmReportParameters, Save = No)
The preview of the report appears OK on the screen but if I try to print it from the preview using the print icon or the 'File - Print...', a very short-lived message box appears on the screen (I think it is the printer message box that normally appears) but nothing is printed and nothing is in the print queue!
If I change the OpenReport macro entry View action argument from Print Preview to Print, then running the macro prints out the report OK.
I have had this problem with both reports I have been developing today.
While I was developing this report, I printed a few test runs (before completion) using the print from the preview screen and it worked fine! I am obviously doing something later in the report development that appears to prevent the printing of the report from the preview screen. Does anyone have any ideas?
Thanks for any help you can give...
RjB