public ReportOutput(IReport report, IReportBuilder reportBuilder, ReportFormat reportFormat, bool includePreview) { this.Filename = reportBuilder.GetFilename(report, reportFormat); this.FileContentType = reportBuilder.GetContentType(reportFormat); this.FileContents = reportBuilder.Save(reportFormat); if (includePreview) { this.PreviewPngContents = reportBuilder.CreatePngPreview(); } }