protected override void CustomizeSubReport(XmlDocument doc, XmlNamespaceManager nsmgr, string subReportKey)
        {
            base.CustomizeSubReport(doc, nsmgr, subReportKey);

            if (subReportKey == FilterListSubReportName)
            {
                return;
            }

            var diagrammColumnCount = GetDiagrammColumnCount(subReportKey);

            ReportSizeCollection reportSizeCollection = reportResourceLocator.GetReportSizeCollection <ZustandsspiegelProJahrGrafischePoProvider>();

            var reportSize = reportSizeCollection.ReportSizes.Single(r => r.ColumnCount == diagrammColumnCount);

            decimal leftMargin  = 2.0m;
            decimal rightMargin = 0.0m;

            var currentChartWidth = ReportTemplatingService.GetChartWidth(doc, nsmgr);
            var chartInnerPlotPostionLeftPercent = ReportTemplatingService.GetChartInnerPlotPostionLeftPercent(doc, nsmgr);

            var currentChartPlotAreaWidth = currentChartWidth - (currentChartWidth / 100.0m * chartInnerPlotPostionLeftPercent);

            var columnCountDependentAdditionalWidth = (ReportTemplatingService.GetMatrixTableColumnWidth(doc, nsmgr) + reportSize.ColumnWidthCorrection) * (diagrammColumnCount - 1);
            var chartWidth = currentChartPlotAreaWidth + columnCountDependentAdditionalWidth;

            var totalWidth = chartWidth + leftMargin + rightMargin;

            ReportTemplatingService.SetChartInnerPlotPostionLeft(doc, nsmgr, leftMargin / totalWidth * 100);
            ReportTemplatingService.SetChartInnerPlotPostionWidth(doc, nsmgr, chartWidth / totalWidth * 100);

            ReportTemplatingService.SetChartLeft(doc, nsmgr, reportSize.ChartLeft);
            ReportTemplatingService.SetChartWidth(doc, nsmgr, totalWidth);
        }
 internal NewToOldReportSizeCollection(ReportSizeCollection col)
 {
     m_col = col;
 }
 public NewToOldReportSizeCollection(ReportSizeCollection col)
 {
     this.m_col = col;
 }