public static void DoAction(this Stimulsoft.Report.StiReport report, Infrastructure.Report.ExportType action, string fileName = null)
        {
            switch (action)
            {
            case Infrastructure.Report.ExportType.Print:
            {
                report.Print();
                break;
            }

            case Infrastructure.Report.ExportType.ExportToPDF:
            {
                report.ExportToPdf(fileName);
                break;
            }

            case Infrastructure.Report.ExportType.SaveAsImage:
            {
                report.ExportToImage(fileName);
                break;
            }

            case Infrastructure.Report.ExportType.Show:
            {
                report.ShowWithWpfRibbonGUI();
                break;
            }

            default:
                break;
            }
        }