在我的项目中,我正在使用Maven 3.0.4并使用JasperReports 5.1.0.要 使用jasperreports-maven-plugins编译JRXML文件.我有版本1.0-beta-2 的jasperreports-maven-plugin.因为它是测试版(1.0-beta-2)我可以知道,什么是稳定版的jasperreports-maven-plugin可以使用?
在我的pom.xml文件中使用的插件下面
<properties>
<jasperreports.version>5.1.0</jasperreports.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<sourceDirectory>src/main/resources/reports</sourceDirectory>
<outputDirectory>${project.build.directory}/classes/reports</outputDirectory>
</configuration>
<executions>
<execution>
<!-- Need to bind to the compile phase cuz the reports uses classes under target/classes. The default is the generate-resources phase. -->
<phase>compile</phase>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>${jasperreports.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.0.1</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud) 如何在JasperReports模板文件(JRXML)中添加注释.我需要在每个乐队中添加一些注释来描述乐队的功能,还需要为子报表编写一些注释.那么如何在jrxml文件中添加注释?
我对Paypal订阅有一些疑问.我们正在托管一个网站,我们希望为我们的客户提供订阅功能.我们已经使用沙盒订阅功能实现了这一功能.它工作正常.我们想为客户增加一个折扣功能.根据具有折扣优惠的客户可以在一段时间内以折扣金额使用该网站.折扣期后,金额将变为常规金额.它需要在一段时间后更新常规金额.用户将仅在第一次注册订阅.之后,必须将订阅修改为常规金额而无需其他用户干预.我们如何更新/修改订阅以在折扣期后更改常规金额,而不会打扰用户.请帮助我...
谢谢..
在报表模板文件(*.jrtx)中添加条件样式和条件表达式,并在*.jrxml中调用。
我已经通过在 *.jrtx 文件中添加条件样式进行了测试,但它不起作用。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperTemplate PUBLIC "-//JasperReports//DTD Template//EN" "http://jasperreports.sourceforge.net/dtds/jaspertemplate.dtd">
<jasperTemplate>
<style name="columnhead" mode="Opaque" backcolor="#A9A9A9"/>
<style name="alternatestyle" mode="Opaque" forecolor="#B8860B">
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean ($V{REPORT_COUNT}.intValue() % 2 == 0)]]></conditionExpression>
<style forecolor="#A9A9A9"/>
</conditionalStyle>
</style>
<jasperTemplate>
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮助我。提前致谢。