iReport is a graphical tool you can use to create/edit templates (jrxml files) that will be later processed by JasperReports engine.
![]() | You must use iReport 4.0.1 |
JasperReports introduced a change in version 3.6.1 that it should fail (throw an exception) when you're trying to use a font that is not available.
JasperReports 3.6.1 (2009-10-26, SVN 3170) --------------------------------------------- - net.sf.jasperreports.awt.ignore.missing.font configuration property added to control font availability verifications during report filling and report AWT rendering;
If you open a JasperReports template and is using a font not available in your system, you won't see the text of label. To avoid this problem you need to configure your iReport to skip this check.
Openbravo 3 doesn't support out of the box any Scriplet class. Make sure your template doesn't contain any class in the template properties.
The default language for expressions in Openbravo 3 is Java. Make sure that your template uses Java as language expression.
鍘熸枃:http://quicker.iteye.com/blog/801655
浣跨敤Ireport鏈鏂扮殑4.0.1鐗堟湰
1銆佸湪Ireport鍔犳坊鍔犳暟鎹簮錛氱獥鍙?gt;鏈嶅姟>鏁版嵁搴?gt;澧炲姞鏁版嵁婧?/p>
2銆佸湪Ireport4.0.1涓嬪疄鐜癙DF涓枃鎶ヨ〃錛岃В鍐充腑鏂囧瓧浣撻棶棰橈細(xì)
涓嬭澆瀹夎鏍圭洰褰曞D:\Program Files\iReport-4.0.1錛屽湪鍏朵笅鐩綍D:\Program Files\iReport-4.0.1\ireport\modules\ext涓寘鎷簡璁稿搴旂敤鎵闇瑕佺殑jar鏂囦歡銆傛墦寮ireport錛屽伐鍏?gt;閫夐」>iReport>Classpath>鍦ㄩ噷闈㈡坊鍔爅ar錛氭坊鍔爀xt鐩綍涓嬬殑iText-2.1.7.jar鍜宨TextAsian.jar涓や釜jar;
濡傚浘錛?/p>
鍦ㄥ伐鍏?gt;閫夐」>iReport>fonts涓嬮潰鍏ㄩ?/p>
濡傚浘
鏂板緩涓涓姤琛紝娣誨姞闈欐佹枃鏈紝杈撳叆涓枃騫惰緗枃鏈殑瀛椾綋銆丳DF font name閫夋嫨STSong-Light錛孭DF Encoding閫夋嫨UniGB-UCS2-H銆侾DF Embedded閫変笂銆?/p>
璁劇疆瀹屾垚鍚庝嬌鐢╬df preview,鍥犱負(fù)鎴戜滑涓婇潰鏂板姞浜唈ar鍖咃紝鎵浠ユ渶濂藉厛鍏充簡ireport鍐嶉噸鍚紝涔嬪悗棰勮灝監(jiān)K浜?/p>
3銆佺粰鎶ヨ〃鏂囨湰鍔犺竟妗嗭細(xì)鍙抽敭鐐歸潤鎬佹枃鏈?gt;Padding and borders>閫夋嫨Line width鍜孡ine style灝卞彲浠ヤ簡
4銆乮report鍙傛暟浼犻掞紝鎴戜滑鍙互灝嗘煡璇㈣鍙ヤ綔涓哄弬鏁幫紝閫氳繃紼嬪簭浼犲叆鍙傛暟鍊鹼紝涔熷彲璁劇疆榛樿鍊?濡傛垜鏂板Parameter鍚嶄負(fù)SQLSTR,鍦ㄥ睘鎬?gt;Default value Expression杈撳叆“select * from orders”娉ㄦ剰涓よ竟鍔犲弻寮曞彿鍣€傚弬鏁板緩濂戒簡銆傛垜浠夋嫨Report Query錛屾垜浠湰鏉ユ槸鍦ㄩ噷闈㈣緭鍏ユ煡璇㈣鍙ョ殑錛岃繖閲屾垜浠嬌鐢⊿QLSTR鍙傛暟,濡備笅鍥撅細(xì)$P!{SQLSTR}璁板緱涓棿鏈夛紒鍙風(fēng)殑銆傜偣read Field涓鏍瘋鍑哄睘鎬т簡銆?/p>
濡備笅鍥?/p>
5銆佹垜浠湪紺轟緥涓湅鍒扮粰鎶ヨ〃鍔犳敞閲婄殑鎯呭喌濡備笅鍥撅細(xì)
鍒氬紑濮嬫壘浜嗗崐澶╂病鎵懼埌榪欎釜緇勪歡錛岃櫧鐒舵病澶氬ぇ鐢紝涓嶈繃鍚庢潵鎵懼埌浜嗭紝灝辨槸ireport緇勪歡闈㈡澘涓殑Callout緇勪歡浜嗐傛嫋鍑烘潵鐐瑰彸閿?gt;娣誨姞pin灝辨湁涓涓浘閽変竴鏍風(fēng)殑涓滀笢浜嗐傘?/p>
6銆佹牱寮忕殑浣跨敤錛屾垜浠笂闈㈠鏂囨湰妗嗗挨鍏舵槸涓枃瑕佽繘琛屽瓧浣撹繕鏈塸df fontname,絳夎緗紝閭d箞鏁翠釜鎶ヨ〃鍋氫笅鏉ュ鏋滄瘡涓兘瑕佽繖鏍瘋緗偅鑲畾鏄釜澶ч夯鐑︿簨錛屾墍浠ヨ繖閲屼篃浣跨敤鏍峰紡鏉ュ畾涔夛紝鍙互鏂板style錛屽茍璁懼畾style鐨勭浉搴斿鹼紝閭d箞鍦ㄥ叾瀹冪殑鏂囨湰絳夐渶瑕佷嬌鐢ㄥ悓涓璁劇疆鐨勭粍浠朵笂錛屾垜浠彧瑕佸湪瀹冪殑灞炴ч噷鐨剆tyle涓夊畾鍒氬垱寤虹殑style灝辮浜嗐?/p>
7銆佷負(fù)鎶ヨ〃澧炲姞緇熻鍊鹼細(xì)涓鑸粺璁″兼斁鍦╬age footer鍜宻ummary涓俿ummmary涓烘姤琛ㄧ駭鍒殑緇熻銆備互summary涓轟緥錛氬鎴戜滑瑕佺粺璁rders 琛ㄤ腑鐨刦reight瀛楁鐨勫肩殑鎬繪暟銆?/p>
棣栧厛鍒涘緩涓涓彉閲廡OTAL_NUM錛岄厤緗涓嬪浘錛?/p>
鎶婅鍙橀噺鎷栧埌Summary Band鍗沖彲銆傛敞鎰忎笂闈㈤厤緗」鐨刬ncrement type涓簄one錛屽彟澶朢eset Type涓篟eport
濡傛灉鎴戜滑鍦╬age footer涓嬬殑緇熻錛岃繖閲岀殑reset Type搴旇涓篜age