【问题标题】:The definition of the report is invalid报表定义无效
【发布时间】:2017-01-27 18:17:54
【问题描述】:

尝试创建 RDLC 报告但遇到异常:

文本运行“Textbox40.Paragraphs[0].TextRuns[0]”的值表达式包含错误:[BC30516] 重载解析失败,因为没有可访问的“IIf”接受此数量的参数。代码如下:

                              <Value>
                                =Fields!TermsDescription.Value &amp; " " &amp; Fields!PrimaryCurrency.Value &amp; vbcrlf &amp;
                                iif((Parameters!DocType.Value = "INVOICE" and Fields!ShowInterestStatement.Value), "1.5% Per Month (19.56% per Annum)" &amp; vbcrlf &amp; "Will be Charged on Overdue Accounts" &amp; vbcrlf &amp;
                                IIF((Parameters!DocType.Value = "ORDER ACKNOWLEDGEMENT"), "All goods sold are subject to Apex Remington's terms and conditions of sale which are available for your review at http://www.apexdistribution.com/terms", "test") &amp;

                              </Value>

【问题讨论】:

    标签: xml rdlc reportviewer


    【解决方案1】:

    您必须指定第一个IIf 函数的FalsePart

    =IIf(
        Expression1,
        TruePart1 & IIf(Expression2, TruePart2, FalsePart2),
        FalsePart1
    )
    

    【讨论】:

      猜你喜欢
      • 2013-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-07
      • 1970-01-01
      • 2014-05-01
      • 1970-01-01
      相关资源
      最近更新 更多