report form myreport to printer prompt preview noconsoleThis give the user a chance to verify what he is going to print and also to print only certain pages if he doesn't want the entire report.
set reportbehavior 90 set classlib to MyReportListeners additive do (_reportpreview) with loPreviewContainer loPreviewContainer.ToolBarIsVisible = .t. loReportListener = newobject 'MyReportListener_Directives', 'MyReportListener loReportListener.ListenerType = 1 &&Preview loReportListener.PreviewContainer = loPreviewContainer report form myreport object loReportListener nowaitproduces a nice preview but loses the prompt when the user clicks the print button. Is there a way to get both a preview and a prompt?