protected void CreateReport() { IReport report = actualReportInfo.CreateReport(); if (report == null) { return; } SetCustomSettingsViewModel(actualReportInfo.ParametersViewModel); SetDocumentSource(report); report.PrintingSystemBase.ClearContent(); report.CreateDocument(true); }