args args; ReportRun rr; Report rb; PrintJobSettings pjs; ; args= new Args("Report"); args.record(common)); args.parmEnum(PrintCopyOriginal::OriginalPrint); rr = new ReportRun(Args); rb = rr.report(); rr.suppressReportIsEmptyMessage(true); // no more "Report is empty..." stuff pjs = rr.printJobSettings(); pjs.virtualPageHeight(0); pjs.fitToPage(true); rb.interactive(false); rr.query().interactive(false); pjs.setTarget(PrintMedium::File); pjs.viewerType(ReportOutputUserType::HTML); rr.init(); pjs.setTarget(PrintMedium::File); pjs.viewerType(ReportOutputUserType::HTML); pjs.format(printFormat::HTML); pjs.fileName(@"fileName"); rr.run();