Exemplo n.º 1
0
        void OverviewReport_Click(object sender, RoutedEventArgs e)
        {
            var overviewReport   = new OverviewReport(fileNames);
            var reportCreator    = overviewReport.Run(list);
            var previewViewModel = new PreviewViewModel(overviewReport.ReportSettings, reportCreator.Pages);

            viewer.SetBinding(previewViewModel);
            ActivateReportTab();
        }
Exemplo n.º 2
0
        public void Execute(ProgressUpdateDelegate updateFunction)
        {
            try
            {
                MemoryStream   ms     = new MemoryStream();
                StreamWriter   sw     = new StreamWriter(ms);
                OverviewReport report = new OverviewReport(_model);
                report.WriteReport(sw);

                HtmlViewer viewer = new HtmlViewer(ms);
                viewer.Show();

                _done = true;
            }
            catch (Exception ex)
            {
                ErrorDialog.Show(ex.ToString());
            }
        }
Exemplo n.º 3
0
        public string GetOverviewReport()
        {
            OverviewReport report = new OverviewReport(_dsmModel);

            return(report.WriteReport());
        }