Symptom
When we use Inline RAS printing rather than the old printtoprinter method it does not respect reports that have Suppress Printing If No Records set.
This problem can also be seen in the CRystalReportViewer.
If PrintMode is set to PrinterToPrinter it respects Suppress Printing If No Records.
However if it is set to PrintOutputController blank pages are printed.
Environment
Crystal Reports for Visusl Studio SP 18.
Reproducing the Issue
CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions printReportOptions = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions();
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument reportClientDoc;
reportClientDoc = reportDocument.ReportClientDocument;
printReportOptions.PrinterName = "someprinter"
reportClientDoc.PrintOutputController.PrintReport(printReportOptions);
Resolution
This issue has been Escalated to our Developers for a solution in SP 19
Keywords
CR for VS, PrintOutputController, Supress Printing if no Records , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem