【问题标题】:More than one column groups causing width problems (min-width inheritance issues)多个列组导致宽度问题(最小宽度继承问题)
【发布时间】:2016-06-21 22:34:15
【问题描述】:

说明 问题:在具有多个列组的 SSRS 矩阵报告中 - 所有列组的列宽都从第一个列组标题继承它们的最小宽度。因此,如果第一个父列的子组项比其他父列多,则所有父列都呈现为与第一个列一样宽,从而导致大量空间浪费。即使是最简单的矩阵报告也会出现问题。有关显示此问题的向导生成报告,请参见附件。

该问题已复制并附上。 Click here to view image

【问题讨论】:

    标签: reporting-services ssrs-tablix column-width


    【解决方案1】:

    我遇到了同样的问题,我仍在寻找一个好的解决方案。

    但是,如果您将报表集成到网页中,我使用的解决方法是使用 jQuery 覆盖 min-width 属性(我的报表包含在带有 ReportViewer 控件的网页中):

    在css文件中:

    .reportCell {
      min-width: 0 !important;
    }
    .reportCell div {
      white-space: nowrap !important;
      padding-left: 5px !important;
      padding-right: 5px !important;
    }
    

    在我的 ASPX 中:

    <script type="text/javascript">
        $(document).ready(function () {           
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () { ReportStyle(); });
        });  
    
        function ReportStyle() {            
            $("[id^=VisibleReportContent] td").addClass("reportCell");
        }
    </script>
    

    【讨论】:

      【解决方案2】:

      SSRS矩阵中不能动态设置列宽 Stack

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-05-18
        • 2014-04-24
        • 1970-01-01
        • 1970-01-01
        • 2021-11-28
        • 1970-01-01
        • 1970-01-01
        • 2014-02-02
        相关资源
        最近更新 更多