【问题标题】:hide "groups" based on formulae In Crystalreports ..?/根据 Crystal Reports 中的公式隐藏“组” ..?/
【发布时间】:2011-04-10 04:36:07
【问题描述】:

我正在做一份显示分类子类别明智销售报告的报告。

我用类别和子类别对标题进行分组

我想要做的是..隐藏子类别(组头)-->如果用户没有指定或选择任何子类别。

..??

【问题讨论】:

标签: crystal-reports


【解决方案1】:

为此,您需要根据参数值有条件地抑制组标头。为此:

  1. 从“报告”菜单中选择“部分专家...”选项。
  2. 在“部分扩展”对话框中选择子类别组标题部分。
  3. 单击“抑制”(无向下钻取)选项的公式按钮。
  4. 输入公式IsNull ({?subcategory}),点击Save and close
  5. 单击“部分专家”对话框底部的“确定”。

【讨论】:

    【解决方案2】:
    <html>
      <head>
        <style type="text/css">
     .no-wrapper{ float:left;}
     .no-wrapper  a#triangleUP{height:30px;}
      #triangleDWN {height:30px;}
         a#triangleUP
          {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 20px;
            border-color: transparent  transparent  #7EC6E0  transparent;
           display:block;
          }
         a#triangleDWN
          {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 20px;
            border-color: #7EC6E0  transparent  transparent  transparent;
           display:block;
          }
    span.center{ text-align:center; display:block;font-size:24px;}
         a#triangleDWN:hover{border-color: #1A87B0  transparent  transparent  transparent;}
         a#triangleUP:hover{border-color: transparent  transparent  #1A87B0  transparent;}
          a{text-decoration:NONE;}
        </style>
      </head>
      <body>
    <div class="no-wrapper">
    <a id="triangleUP" href="#">&nbsp</a>
          <span class="center">1</span>
      <a id="triangleDWN"  href="#">&nbsp</a>
    </div>
    
      </body>
    </html>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多