如需搬運請註明出處
-
在頁面最頂部中 添加一個隱藏的
line
,並且y座標設置爲-1,在這裏面動態配置sheet.name
-
<line> <reportElement x="0" y="-1" width="1" height="1"> <propertyExpression name="net.sf.jasperreports.export.xls.sheet.name"><![CDATA[$F{course_name}]]></propertyExpression> </reportElement> </line>
如何導出多個sheet請看這篇文章:https://blog.csdn.net/yilongchuan/article/details/104961620