报告定义语言中的报告布局问题

时间:2019-02-20 14:39:29

标签: xml report reporting rdl

我正在调查一个旧的.rdl报告,如果发票为“当前”,该报告似乎不会填充正确的列。如果发票开始日期不超过到期日期,则定义为当前。如果确实超过到期日期,则发票金额将在逾期0-30或31天后显示。

我试图在报表生成器和可视化软件中打开报表,但是,它引发了一个错误声明版本不匹配(我已经在线阅读了多本指南,以解决此问题。)

原始代码:

<table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                      </properties>
                                      <data>vldtdate:dateDiff(tns:DUE_DATE, ../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME)</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE,../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &gt; 0</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>vldtdate:dateDiff(tns:DUE_DATE, ../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME)</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>0</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                      </number-format>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <number-columns-spanned>2</number-columns-spanned>
                                         <padding-left>3pt</padding-left>
                                         <text-align>left</text-align>
                                      </properties>
                                      <data>vldtstr:strIFF(vldtstr:strCompare(tns:INVOICE_TYPE,'CHECK'),tns:INVOICE_TYPE,'CHEQUE',tns:INVOICE_TYPE)</data>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>vldtstr:strIFF(vldtstr:strCompare(tns:INVOICE_TYPE,'CHECK'),tns:INVOICE_TYPE,'CHEQUE',tns:INVOICE_TYPE)</data>
                                      </text-field>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <number-columns-spanned>1</number-columns-spanned>
                                         <overflow>auto</overflow>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                         <wrap-option>no-wrap</wrap-option>
                                      </properties>
                                      <data>tns:OPEN_AMOUNT</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE,../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &lt;0</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>tns:OPEN_AMOUNT</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>-1</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                         <currency>true</currency>
                                         <null-to-zero>true</null-to-zero>
                                      </number-format>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <overflow>auto</overflow>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                         <wrap-option>no-wrap</wrap-option>
                                      </properties>
                                      <data>tns:OPEN_AMOUNT</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE, vldtdate:currentDateTime()) &gt;=0 and vldtdate:dateDiff(tns:DUE_DATE,../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &lt; 31</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>tns:OPEN_AMOUNT</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>-1</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                         <currency>true</currency>
                                         <null-to-zero>true</null-to-zero>
                                      </number-format>
                                   </table-cell>
                                   <table-cell>
                                      <properties>
                                         <border-left-style>solid</border-left-style>
                                         <border-right-style>solid</border-right-style>
                                         <font-family>Arial</font-family>
                                         <font-size>8pt</font-size>
                                         <font-style>normal</font-style>
                                         <font-weight>normal</font-weight>
                                         <hyphenate>true</hyphenate>
                                         <overflow>auto</overflow>
                                         <padding-right>3pt</padding-right>
                                         <text-align>right</text-align>
                                         <wrap-option>no-wrap</wrap-option>
                                      </properties>
                                      <data>tns:OPEN_AMOUNT</data>
                                      <conditions>
                                         <visible>vldtdate:dateDiff(tns:DUE_DATE, ../../../../../../../tns:PROCESSING_INFO/tns:PROCESSING_ATTRIBUTES/tns:ORDER_TIME) &gt;30</visible>
                                      </conditions>
                                      <text-field>
                                         <properties>
                                            <hyphenate>true</hyphenate>
                                            <left>0cm</left>
                                            <top>0pt</top>
                                         </properties>
                                         <data>tns:OPEN_AMOUNT</data>
                                      </text-field>
                                      <number-format>
                                         <group-size>-1</group-size>
                                         <min-int>-1</min-int>
                                         <min-frac>-1</min-frac>
                                         <max-frac>-1</max-frac>
                                         <neg-num-format>-1.1</neg-num-format>
                                         <neg-sign>#BASEONLOCALE#</neg-sign>
                                         <group-symbol>#BASEONLOCALE#</group-symbol>
                                         <decimal-symbol>#BASEONLOCALE#</decimal-symbol>
                                         <currency>true</currency>
                                         <null-to-zero>true</null-to-zero>
                                      </number-format>
                                   </table-cell>

下图显示了问题 Example Image

有什么想法吗?

0 个答案:

没有答案