日期:2014-05-19 浏览次数:20706 次
<?xml version="1.0"?><!-- iReport connections --> <iReportConnectionSet> <iReportConnection name="Empty datasource" connectionClass="com.jaspersoft.ireport.designer.connection.JREmptyDatasourceConnection"> <connectionParameter name="records"><![CDATA[1]]></connectionParameter> </iReportConnection> <iReportConnection name="Sample Database (HSQLDB test)" connectionClass="com.jaspersoft.ireport.samples.db.SampleDatabaseConnection"> <connectionParameter name="ServerAddress"><![CDATA[]]></connectionParameter> <connectionParameter name="SavePassword"><![CDATA[true]]></connectionParameter> <connectionParameter name="Url"><![CDATA[jdbc:hsqldb:hsql://127.0.0.1/]]></connectionParameter> <connectionParameter name="JDBCDriver"><![CDATA[org.hsqldb.jdbcDriver]]></connectionParameter> <connectionParameter name="Database"><![CDATA[]]></connectionParameter> <connectionParameter name="Password"><![CDATA[]]></connectionParameter> <connectionParameter name="Username"><![CDATA[sa]]></connectionParameter> </iReportConnection> <iReportConnection name="Test" connectionClass="com.jaspersoft.ireport.designer.connection.JDBCConnection"> <connectionParameter name="ServerAddress"><![CDATA[]]></connectionParameter> <connectionParameter name="SavePassword"><![CDATA[true]]></connectionParameter> <connectionParameter name="Url"><![CDATA[jdbc:jtds:sqlserver://localhost/pcbsyn]]></connectionParameter> <connectionParameter name="JDBCDriver"><![CDATA[net.sourceforge.jtds.jdbc.Driver]]></connectionParameter> <connectionParameter name="Database"><![CDATA[]]></connectionParameter> <connectionParameter name="Password"><![CDATA[711]]></connectionParameter> <connectionParameter name="Username"><![CDATA[sa]]></connectionParameter> </iReportConnection> </iReportConnectionSet>
<action name="toXls" class="com.yaxing.action.userListAction" method="execute"> <result name="success" type="jasper"> <param name="location">report1.jasper</param> <param name="dataSource">userList</param> <param name="format">XLS</param> </result> <result name="error"> /info_error.jsp </result> </action>
java怎么读取存在sql server 库中的图片