Posted on 2007-07-26 22:27
leekiang 閱讀(626)
評論(0) 編輯 收藏 所屬分類:
JasperReports
1,用exporter.setParameter(JRExporterParameter.PAGE_INDEX,new Integer(page)) 進行分頁,一直顯示正常,當使用
exporter.setParameter(JRHtmlExporterParameter.JASPER_PRINT_LIST,totalJprint);
在HTML顯示時會把多頁一起顯示出來,無法分頁顯示,為什么?
2,
用ireport3.0打開一個舊的jrxml文件并且運行,
發現ireport把<box>元素的topBorderColor屬性改成了<box>子元素<topPen>的lineColor屬性。
查看最新的dtd,發現新舊兩種方式都支持。
舊的<box?topBorder="None"
????????topBorderColor="#000000"?leftBorder="1Point"
????????leftBorderColor="#000000"?rightBorder="1Point"
????????rightBorderColor="#000000"?bottomBorder="1Point"
????????bottomBorderColor="#000000"?/>
????????
????新的????<box>
????????<topPen?lineWidth="0.0"
?????????lineStyle="Solid"?lineColor="#000000"?/>
????????<leftPen?lineWidth="1.0"
?????????lineStyle="Solid"?lineColor="#000000"?/>
????????<bottomPen?lineWidth="0.0"
?????????lineColor="#000000"?/>
????????<rightPen?lineWidth="1.0"
?????????lineStyle="Solid"?lineColor="#000000"?/>
???????</box>
?????但<bottomPen>明顯有問題,少一個lineStyle,另外應該為lineWidth="1.0"?
3, 常見報表模型:列表、分組、主從、嵌套、交叉、圖形、套打、分欄、填報。
4, sf的DynamicJasper使JasperReports具有動態報表的能力。
http://blog.csdn.net/chszs/archive/2007/09/23/1796815.aspx
?????
???????