Ejemplo n.º 1
0
        private void MakeHtmlPreview(string transform)
        {
            if (ServiceContainer.getService <IReportService>().ReportFileName == null)
            {
                mmFileSaveAs.PerformClick();
            }

            if (ServiceContainer.getService <IReportService>().ReportFileName == null)
            {
                return;
            }

            var asyncProcess = new TinyAsyncUserProcess
            {
                Action = tracker => HtmlPreview.DoTransform(tracker, ServiceContainer.getService <IReportService>().ReportFileName, transform)
            };

            asyncProcess.Execute(this);
        }