JasperReports
這個(gè)東西,是個(gè)好東西,iReport這個(gè)東西,也是個(gè)好東西;就是iReport這個(gè)東西,給我很多啟示,關(guān)于sql組件,雖最終未必可行,目前處于驗(yàn)證進(jìn)程。
話說(shuō)使用iReport+JasperReports開(kāi)發(fā)報(bào)表的曾經(jīng)的尷尬,testing during development and testing on local machine, the report pdf displays well, so good job have done, but when demo in customer locale, a lot of fields cannot be displayed(不能顯示了!)。
After a lot of time trying, almost every options supplied have been tried in checked way and unchecked way, the well fields displayed accordingly, I have got some ideas:
1) cannot display(不能顯示), but other field with same content can display , why?
OK, the size is too small(把字符框的 大小設(shè)置大一些),then well done.、
2)some field cannot display
process: I found these undisplayed is in header, then I copy them to footer, what's the result? display well in footer, but no display in header.
then I change the "evaluation time" from "now" to "column"
well done!
but be careful, fields valued $F cannot be column, for it cannot be displayed
3) some field cannot be display corresponding to 2)
why they cannot be displayed in both header and footer?
oh, I found most field have the "stretch with overflow" option checked, so I added, so cool
******************************************************
this problem I found explation when I solved on net
iReport stretch 選項(xiàng)的注意
Text Field有一選項(xiàng)為Stretch with overflow。 作用是動(dòng)態(tài)的伸展文字所占的空間。
要注意一點(diǎn)是Stretch是跟據(jù)Font Name的體字像數(shù)為基準(zhǔn)進(jìn)行伸展的。所以當(dāng)我們輸出PDF格式時(shí)要注意PDF Font Name 與Font Name是否一致。如不一致在文字量多的時(shí)候會(huì)出現(xiàn)少了或多了顯示空間的問(wèn)題
iReport Band的[Split allowed]屬性
Split allowed是允許分開(kāi)的意思。以頁(yè)為單位,被分離出去的是Band內(nèi)的所有內(nèi)容。如果剩下的頁(yè)面空間不夠顯示Band的內(nèi)容。那么Band的內(nèi)容會(huì)顯示在下一頁(yè)。
ireport有時(shí)侯不能顯示數(shù)據(jù)庫(kù)中數(shù)據(jù)的解決方式:
1)每一個(gè)element:設(shè)置:print when details overflow ;stretch overflow
2)字段高度不夠
******************************************************
all resolved, the boss smiled, and happy back from customer