Exemplo n.º 1
0
        private static void ShowWarningsReport(List<Agg> aggs, List<AggDimension> aggDimensions)
        {
            if (aggs.Count > 0)
            {
                BIDSHelper.ReportViewerForm frm = new BIDSHelper.ReportViewerForm();
                frm.ReportBindingSource.DataSource = aggs;
                frm.Report = "SSAS.AggManager.PrinterFriendlyAggs.rdlc";
                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource1.Name = "AggManager_Agg";
                reportDataSource1.Value = frm.ReportBindingSource;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource1);

                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource2.Name = "AggManager_AggDimension";
                reportDataSource2.Value = aggDimensions;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource2);

                frm.ReportViewerControl.LocalReport.ReportEmbeddedResource = frm.Report;

                frm.Caption = "Aggregations Report";
                frm.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                frm.Show();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("No aggregations found.");
            }
        }
Exemplo n.º 2
0
        private static void ShowWarningsReport(List <Agg> aggs, List <AggDimension> aggDimensions)
        {
            if (aggs.Count > 0)
            {
                BIDSHelper.ReportViewerForm frm = new BIDSHelper.ReportViewerForm();
                frm.ReportBindingSource.DataSource = aggs;
                frm.Report = "SSAS.AggManager.PrinterFriendlyAggs.rdlc";
                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource1.Name  = "AggManager_Agg";
                reportDataSource1.Value = frm.ReportBindingSource;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource1);

                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource2.Name  = "AggManager_AggDimension";
                reportDataSource2.Value = aggDimensions;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource2);

                frm.ReportViewerControl.LocalReport.ReportEmbeddedResource = frm.Report;

                frm.Caption     = "Aggregations Report";
                frm.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                frm.Show();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("No aggregations found.");
            }
        }
Exemplo n.º 3
0
        private void OpenAggPerfReport(List <AggregationPerformanceTester.AggregationPerformance> listPerf, List <AggregationPerformanceTester.MissingAggregationPerformance> missingPerf, bool showMissingAggs)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new MethodInvoker(delegate() { OpenAggPerfReport(listPerf, missingPerf, showMissingAggs); }));
            }
            else
            {
                if (listPerf == null)
                {
                    return;
                }

                BIDSHelper.ReportViewerForm frm = new BIDSHelper.ReportViewerForm();
                frm.ReportBindingSource.DataSource = listPerf;
                frm.Report = "SSAS.AggManager.AggregationPerformance.rdlc";

                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource1.Name  = "AggManager_AggregationPerformance";
                reportDataSource1.Value = frm.ReportBindingSource;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource1);

                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource2.Name  = "AggManager_MissingAggregationPerformance";
                reportDataSource2.Value = missingPerf;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource2);

                frm.Parameters.Add(new Microsoft.Reporting.WinForms.ReportParameter("ShowMissingAggs", showMissingAggs.ToString()));

                frm.Caption     = "Aggregation Performance Report";
                frm.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                frm.Show(this);
            }
        }
Exemplo n.º 4
0
        private static void ShowWarningsReport(List<AggValidationWarning> masterWarnings)
        {
            if (masterWarnings.Count > 0)
            {
                BIDSHelper.ReportViewerForm frm = new BIDSHelper.ReportViewerForm();
                frm.ReportBindingSource.DataSource = masterWarnings;
                frm.Report = "SSAS.AggManager.ValidateAggs.rdlc";
                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource1.Name = "AggManager_AggValidationWarning";
                reportDataSource1.Value = frm.ReportBindingSource;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource1);
                frm.ReportViewerControl.LocalReport.ReportEmbeddedResource = frm.Report;

                frm.Caption = "Aggregation Validation Warnings";
                frm.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                frm.Show();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("No aggregations warnings found.");
            }
        }
        private static void ShowWarningsReport(List <AggValidationWarning> masterWarnings)
        {
            if (masterWarnings.Count > 0)
            {
                BIDSHelper.ReportViewerForm frm = new BIDSHelper.ReportViewerForm();
                frm.ReportBindingSource.DataSource = masterWarnings;
                frm.Report = "SSAS.AggManager.ValidateAggs.rdlc";
                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource1.Name  = "AggManager_AggValidationWarning";
                reportDataSource1.Value = frm.ReportBindingSource;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource1);
                frm.ReportViewerControl.LocalReport.ReportEmbeddedResource = frm.Report;

                frm.Caption     = "Aggregation Validation Warnings";
                frm.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                frm.Show();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("No aggregations warnings found.");
            }
        }
Exemplo n.º 6
0
        private void OpenAggPerfReport(List<AggregationPerformanceTester.AggregationPerformance> listPerf, List<AggregationPerformanceTester.MissingAggregationPerformance> missingPerf, bool showMissingAggs)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new MethodInvoker(delegate() { OpenAggPerfReport(listPerf, missingPerf, showMissingAggs); }));
            }
            else
            {
                if (listPerf == null) return;

                BIDSHelper.ReportViewerForm frm = new BIDSHelper.ReportViewerForm();
                frm.ReportBindingSource.DataSource = listPerf;
                frm.Report = "SSAS.AggManager.AggregationPerformance.rdlc";

                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource1.Name = "AggManager_AggregationPerformance";
                reportDataSource1.Value = frm.ReportBindingSource;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource1);

                Microsoft.Reporting.WinForms.ReportDataSource reportDataSource2 = new Microsoft.Reporting.WinForms.ReportDataSource();
                reportDataSource2.Name = "AggManager_MissingAggregationPerformance";
                reportDataSource2.Value = missingPerf;
                frm.ReportViewerControl.LocalReport.DataSources.Add(reportDataSource2);

                frm.Parameters.Add(new Microsoft.Reporting.WinForms.ReportParameter("ShowMissingAggs", showMissingAggs.ToString()));

                frm.Caption = "Aggregation Performance Report";
                frm.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                frm.Show(this);
            }
        }