poi 何 jexcel 這兩個 jar 包是兩個報表開發的API集合
http://sourceforge.net/projects/ireport/
關於 Ireport + JasperReport 開發的參考資料
http://www.javaresearch.org/forum/thread.jsp?column=316&thread=14374&start=0&msRange=30 羅列ireport的功能
http://blog.csdn.net/chszs/archive/2007/01/25/1493720.aspx 羅列功能,並帶有操作步驟
http://hi.baidu.com/myloveral/blog/item/0238ec034e8dfc89d53f7ceb.html 很詳細的細節描述
http://ireport-tutorial.blogspot.com/2008/10/ireport-your-first-report.html 視頻教程
http://sourceforge.net/forum/forum.php?forum_id=880077
http://www.cnblogs.com/sharewind/archive/2007/08/15/856948.html
http://blog.csdn.net/yuanfen127/archive/2008/05/08/2413319.aspx
注意事項
1. 注意JRE最好是1.5以上的版本
2. 要先設置好數據源 (即connection, sql),才能添加動態元素,即使這個動態元素與數據源的sql無關的當前時間
3. 在預覽report 後要關閉report 才能再預覽修改後的report
4. 在不同的位置(如title,detail)擺放同一個文本框也可能會出現不同的結果,例如某些地方的文本框會重複出現,但某些卻不會
5. 在view 菜單中能控制哪些面板顯示哪些隱藏
6. 讓文本框的長度少於文字內容的長度的時候不會弄丟文本
關於 scriptlet 的使用
http://www.blogjava.net/bulktree/archive/2008/12/17/246786.html
關於subReport's usage
http://ireport.sourceforge.net/swf/Subreport_viewlet_swf.htm
子報表只是一個帶參數運行的將被插入主報表報表 的普通報表
主報表則會定義子報表的位置,並同時定義傳給子報表的參數
開發流程;
1. 開發一個帶參數運行的報表作為子報表
2. 開發主報表時,點擊SubReport 按鈕,並在主報表的適當位置插入子報表,雙擊子報表設置以下屬性
2.1 必須在Subreport屬性中的Connection/Data Source Expression 中選擇 use connection expression
並在空白區填寫 $P{REPORT_CONNECTION}
2.2 必須在 Subreport(others)選項卡中的Subreport expression 中填寫子報表的jasper文件的位置
如: "D://launched//REQUEST FORM//IReport//pdaFurtherAction//subReport//login.jasper"
2.3 必須在 Subreport(others)選項卡中的 Subreport Parameters 中添加 傳給子報表的參數名和值
如: $F{role} (引用報表某個數據項的值作為參數進行傳遞)
一些常用選項
1. 當某個field的內容長度大於field的框長度,就會出現內容丟失的問題
解決方法: 右擊filed ---> 在common選項卡中選擇 print when detail overflow
2.
等待解決問題
常见报表模型:列表、分组、主从、嵌套、交叉、图形、套打、分栏、填报。
結合 相關圖形軟件進行開發 ( 即利用 scriptlet 調用 jfreechar 在必須的位置產生圖表 )
水平分欄報表 (橫向展示數據的報表)