jasperreport動態設置sheet名

如需搬運請註明出處

  1. 在頁面最頂部中 添加一個隱藏的 line,並且y座標設置爲-1,在這裏面動態配置 sheet.name

  2.  <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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章