| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ReportManager Class > ReportManager Methods >====== PrintReport (print the report) ====== | [[openreport prepare report for execution .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[processresultfiles process generated output files .htm|{{btn_next_n.gif|Next page}}]] | | || **PrintReport, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **PrintReport **method is used to determine where a report output will be redirected. Based on the ReportTarget value, the report will be processed via the WMFparser, or as a standard report is handled by the ProcessResultFiles method. **Member of: [[reportmanager methods.htm|ReportManager]]** **Implementation:** The PrintReport method is called by the ReportManager's AskPreview method. **Example:** **ReportManager.AskPreview PROCEDURE** **  CODE** **  IF NOT SELF.Report &= NULL AND SELF.Response = RequestCompleted** **    IF SELF.EndReport()=Level:Benign** **      IF NOT SELF.Preview &= NULL** **        IF CHOOSE (NOT SELF.SkipPreview, SELF.Preview.Display(SELF.Zoom), TRUE)** **          SELF.****PrintReport()**** !Print after previewing** **        ELSE** **          SELF.CancelPrintReport()** **        END** **        FREE(SELF.Preview.ImageQueue)** **      ELSE** **        SELF.****PrintReport()   ****!Print without previewing** **        FREE(SELF.PreviewQueue)** **      END** **    ELSIF NOT SELF.Preview &= NULL** **      FREE(SELF.Preview.ImageQueue)** **    ELSE** **      FREE(SELF.PreviewQueue)** **    END** **  END**