Procházet zdrojové kódy

多个groupfooter合并到一个时,计算总高度

sunyj před 8 roky
rodič
revize
f97210b34b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/main/resources/crystal2jasper.xsl

+ 2 - 2
src/main/resources/crystal2jasper.xsl

@@ -150,7 +150,7 @@
 					<groupHeader>
 						<band>
 							<xsl:attribute name="height"><xsl:value-of
-								select="round(Area[@type='GroupHeader']/Section/@height div $positionRate)" /></xsl:attribute>
+								select="round(sum(Area[@type='GroupHeader']/Section/@height) div $positionRate)" /></xsl:attribute>
 							<xsl:for-each select="Area[@type='GroupHeader']/Section">
 								<xsl:apply-templates select="Element" />
 							</xsl:for-each>
@@ -159,7 +159,7 @@
 					<groupFooter>
 						<band>
 							<xsl:attribute name="height"><xsl:value-of
-								select="round(Area[@type='GroupFooter']/Section/@height div $positionRate)" /></xsl:attribute>
+								select="round(sum(Area[@type='GroupFooter']/Section/@height) div $positionRate)" /></xsl:attribute>
 							<xsl:for-each select="Area[@type='GroupFooter']/Section">
 								<xsl:apply-templates select="Element" />
 							</xsl:for-each>