private byte[] _toByte(byte[] reportFile, ReportExtension fileExtension, IDictionary <string, string> paramValues = null)
        {
            this._reportBuilderReader = new ReportReader(reportFile);

            if (paramValues != null)
            {
                this._setReportParameters(paramValues);
            }

            this._setDataSets();

            return(this._reportViewer.Render(fileExtension.Value));
        }
 public byte[] toByte(string reportFilePath, ReportExtension fileExtension, IDictionary <string, string> paramValues)
 {
     this._setReportPath(reportFilePath);
     return(_toByte(File.ReadAllBytes(reportFilePath), fileExtension, paramValues));
 }
 public byte[] toByte(string reportFilePath, ReportExtension fileExtension)
 {
     this._setReportPath(reportFilePath);
     return(_toByte(File.ReadAllBytes(reportFilePath), fileExtension));
 }