I am printing a report, and first open it in Printpreview,hidden and then specify the printer, and then open in Normal view to actually print the report. This works ok, but while this is going on, I would like the screen to display the form that initiated the printing. At the moment, the screen goes Grey, I think while in printpreview mode. Is there a way to avoid or minimise this
my code:
DoCmd.OpenReport strReport, acViewPreview, , , acHidden
With Reports(strReport)
Set .Printer = Application.Printers(strPrinterName)
End With
With Reports(strReport).Printer
.Duplex = acPRDPSimplex
.PaperBin = intBinID
End With
DoCmd.OpenReport strReport, acViewNormal
DoCmd.Close acReport, strReport
my code:
DoCmd.OpenReport strReport, acViewPreview, , , acHidden
With Reports(strReport)
Set .Printer = Application.Printers(strPrinterName)
End With
With Reports(strReport).Printer
.Duplex = acPRDPSimplex
.PaperBin = intBinID
End With
DoCmd.OpenReport strReport, acViewNormal
DoCmd.Close acReport, strReport