??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久电影,午夜精品99久久免费,亚洲国产精品精华液abhttp://www.aygfsteel.com/keweibo/category/35855.html一? Java 多能 C#,Delphi,Powerbuilder ... zh-cnWed, 08 May 2013 03:15:19 GMTWed, 08 May 2013 03:15:19 GMT60iReport Configuration (Openbravo)http://www.aygfsteel.com/keweibo/articles/398936.htmlKeKeTue, 07 May 2013 07:32:00 GMThttp://www.aygfsteel.com/keweibo/articles/398936.htmlhttp://www.aygfsteel.com/keweibo/comments/398936.htmlhttp://www.aygfsteel.com/keweibo/articles/398936.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/398936.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/398936.html

iReport is a graphical tool you can use to create/edit templates (jrxml files) that will be later processed by JasperReports engine.

Bulbgraph.png   You must use iReport 4.0.1

Fonts

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.

  • Go to Tools > Options > JasperReports Properties
  • Set to true the property net.sf.jasperreports.awt.ignore.missing.font
Ireport-conf-1.png

Scriplet Class

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.

  • Window > Report Inspector
  • Scroll down in the More section
  • Make sure the Scriptlet class property is empty
Ireport-conf-2.png

Language

The default language for expressions in Openbravo 3 is Java. Make sure that your template uses Java as language expression.

  • Window > Report Inspector
  • Scroll down to the More section
  • Pick Java in the Language property
Ireport-conf-3.png


Ke 2013-05-07 15:32 发表评论
]]>
iReportq解决 (?http://www.aygfsteel.com/keweibo/articles/392583.htmlKeKeFri, 07 Dec 2012 01:14:00 GMThttp://www.aygfsteel.com/keweibo/articles/392583.htmlhttp://www.aygfsteel.com/keweibo/comments/392583.htmlhttp://www.aygfsteel.com/keweibo/articles/392583.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/392583.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/392583.html在用iReport与JasperReport作ؓ报表产生工具? 中文支持是经帔R到的问题,W者最q做的一个J2EE Web目采用q套工具开发报?也遇CcM问题,本文ȝ了在使用iReport与JasperReport开发报表时中文支持的有兛_?希望能对读者有所帮助.
1 q行环境
    1.1 JasperReport 1.2.8
    JasperReports是iReport的核心内宏V它是一个强有力的开源报表生工P可以内容输出到屏幕上、打印机或生成PDF, HTML, XLS, CSV和XML{文件。它完全用Java~写Qƈ可在各种Java应用Q包括J2EE或WEB应用Q中用来产生动态报表内宏VJasperReportsl织Ҏ(gu)在一个XML文g中定义的报表设计通过JDBC讉K关系数据库中的数?填充报表数据之前必须先将报表设计被编译成一个jasper文g?
下蝲地址: http://jasperreports.sourceforge.net/
    1.2 iReport 1.2 8
    iReport是一个制作Jasperreport XML文g的优U可视化开发工P通过它可以方便的设计报表模板。目前最高版本ؓiReport 1.3.0
下蝲地址: http://ireport.sourceforge.net
   1.3 iText 1.3.1
   iText是一个开放源码的JavacdQ是用来生成PDF文g的?
下蝲地址: http://itext.sourceforge.net
   1.4 iTextAsian.jar
   如果要在生成的pdf文g昄中文{亚z字W,q必M载itext的亚z字W包?
下蝲地址: http://itextdocs.lowagie.com/downloads/iTextAsian.jar
以上四个包必d到应用程序的构徏路径中或加到CLASSPATHQ若是Web应用攑օ相应的WEB-INF\lib\中?
2 讄中文支持
    Z在报表中能够昄中文,加入以上四个包还不够(因ؓ以上四个包仅Ҏ(gu)表生成及中文昄提供了支?,必须讄报表上各昄对象的相兛_?各属性设|说明如?
    Font        name:    宋体 (中文字体)
    PDF font name:   STSong-Light
    PDF  Encoding:  UniGB-UCS2-H(Chinese Siplified)
    PDF   Embeded: √
    如下图所C?昄对象的属性设|?:

    注意:此三的讄必须保iTextAsian.jar亚洲语言包已l包含在目?否则出现~译错误.
    若读者觉得对每一个对象设|比较麻?可通过iReport?#8221;Format”?#8221;Fonts”菜单q行l一讄,q设成报表的默认字体。如下图所C?

Q可能出现的问题
   l过以上的设|?报表中文的显C应该没什么问题了,W者在报表的开发过E中遇到几个问题Q现ȝ如下Q?
  3.1 问题描述
   在WinXp中运行iReport1.2.8Q设计报表时数据字D늚字体讄成中文字体,调好格式后编译ƈq行,q用JRViewerq行预览一切正?中文昄正常),但用PDF、Excel预览出现如下错误:
   Could not load the following font :
   pdfFontName   : STSong-Light
   pdfEncoding   : UniGB-UCS2-H
   isPdfEmbedded : true
   产生原因:成成PDF的亚z语a包没有包含到目?
   解决办法:亚z语a包iTextAsian.jar包含到项?可能qiReport?#8221;Options”?#8221;Classpath”iTextAsian.jardClasspath中或者直接将iTextAsian.jar复制到iReport安装目录下的lib?若是Web目则应该将iTextAsian.jar复制到此目的WEB-INF\lib\?
   3.2 问题描述
    在WinXp中运行iReport1.2.8Q设计报表时数据字D늚字体讄成中文字体,调好格式后编译ƈq行,q用JRViewerq行预览一切正?中文昄正常),使用PDF、Excel预览时无M错误,但中文无法显C?只显C空?.
    产生原因:报表昄对象的PDF字体属性设|不正确
    解决办法: 报表对象有关字体属性的讄如下:
    Font        name:         宋体 (中文字体)
    PDF font name:  STSong-Light
    PDF Encoding:   UniGB-UCS2-H(Chinese Siplified)
    PDF Embeded:  √
   卛_下图所?

   3.Q问题描q?
    生成PDF、Excel文g?中文昄一切正?但生成Html文g时显CZؕ?
 产生原因Q主要是|页~码问题
    解决Ҏ(gu)
 在JSP中生成Html?讄 <%@ page contentType="text/html;charset=GB2312" %> 
 在Servlet中生成Html?response.setContentType("text/html;charset=GB2312");
 若用户对目q行了统一~码讑֮及过?则需要另作考虑,但主要还是集中在~码问题?例如:W者最q做的项目是其于Struts?对编码进行了l一和过滤处?生成Html面时无需指编码就可正生成Html面,q不会出q,若设|成charset=GB2312反而出Cq.M,对编码的l一与处理还是比较嘛烦的?
    另外, 我们通过查看iReport生成的jrxml(<?xml version="1.0" encoding="UTF-8" ?>)文g可以发现, iReport保存的汉字都是UTF-8~码。了解它的编码可以有助于我们l一~码方式?br />
转自Q?a >http://verytiny.iteye.com/blog/145764

Ke 2012-12-07 09:14 发表评论
]]>
iReport+jasperReport 常见异常 http://www.aygfsteel.com/keweibo/articles/364236.htmlKeKeFri, 18 Nov 2011 06:50:00 GMThttp://www.aygfsteel.com/keweibo/articles/364236.htmlhttp://www.aygfsteel.com/keweibo/comments/364236.htmlhttp://www.aygfsteel.com/keweibo/articles/364236.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/364236.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/364236.html1.
java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException异常
    原因Q没有导? groovy-all.jar 包,导入 groovy-all.jar 包就可以了?


2.

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :

pdfFontName   : STSong-Light

pdfEncoding   : UniGB-UCS2-H

isPdfEmbedded : false

出现上述错误提示加入

iTextAsian.jar

3. 預覽時可正常示中文,到IE中顯C時無法示中文,修改以下兩個屬性即?


以上Jar文g可到Ireport安裝目錄下找.



Ke 2011-11-18 14:50 发表评论
]]>
?ireport4.0.1+jasperreport4.0.1使用结 http://www.aygfsteel.com/keweibo/articles/362399.htmlKeKeMon, 31 Oct 2011 09:18:00 GMThttp://www.aygfsteel.com/keweibo/articles/362399.htmlhttp://www.aygfsteel.com/keweibo/comments/362399.htmlhttp://www.aygfsteel.com/keweibo/articles/362399.html#Feedback0http://www.aygfsteel.com/keweibo/comments/commentRss/362399.htmlhttp://www.aygfsteel.com/keweibo/services/trackbacks/362399.html

原文:http://quicker.iteye.com/blog/801655
使用Ireport最新的4.0.1版本

1、在Ireport加添加数据源Q窗?gt;服务>数据?gt;增加数据?/p>

 

2、在Ireport4.0.1下实现PDF中文报表Q解决中文字体问题:

下蝲安装根目录如D:\Program Files\iReport-4.0.1Q在其下目录D:\Program Files\iReport-4.0.1\ireport\modules\ext中包括了许多应用所需要的jar文g。打开ireportQ工?gt;选项>iReport>Classpath>在里面添加jarQ添加ext目录下的iText-2.1.7.jar和iTextAsian.jar两个jar;

如图Q?/p>

在工?gt;选项>iReport>fonts下面全?/p>

如图

新徏一个报表,d静态文本,输入中文q设|文本的字体、PDF font name选择STSong-LightQPDF Encoding选择UniGB-UCS2-H。PDF Embedded选上?/p>

讄完成后用pdf preview,因ؓ我们上面新加了jar包,所以最好先关了ireport再重启,之后预览O(jin)K?/p>

 

3、给报表文本加边框:右键炚w态文?gt;Padding and borders>选择Line width和Line style可以了

 

4、ireport参数传递,我们可以查询语句作为参敎ͼ通过E序传入参数|也可讄默认?如我新增Parameter名ؓSQLSTR,在属?gt;Default value Expression输入“select * from orders”注意两边加双引号噢。参数徏好了。我们选择Report QueryQ我们本来是在里面输入查询语句的Q这里我们用SQLSTR参数,如下图:$P!{SQLSTR}记得中间有!L。点read Field一栯出属性了?/p>

如下?/p>

 

5、我们在CZ中看到给报表加注释的情况如下图:

刚开始找了半天没扑ֈq个lgQ虽然没多大用,不过后来扑ֈ了,是ireportlg面板中的Calloutlg了。拖出来点右?gt;dpin有一个图钉一L东东了。?/p>

 

6、样式的使用Q我们上面对文本框尤其是中文要进行字体还有pdf fontname,{设|,那么整个报表做下来如果每个都要这栯|那肯定是个大麻烦事Q所以这里也使用样式来定义,可以新增styleQƈ讑֮style的相应|那么在其它的文本{需要用同一讄的组件上Q我们只要在它的属性里的style中选定刚创建的stylep了?/p>

 

7、ؓ报表增加l计|一般统计值放在page footer和summary中。summmary为报表别的l计。以summaryZQ如我们要统计orders 表中的freight字段的值的L?/p>

首先创徏一个变量TOTAL_NUMQ配|如下图Q?/p>

把该变量拖到Summary Band卛_。注意上面配|项的increment type为noneQ另外Reset Type为Report

如果我们在page footer下的l计Q这里的reset Type应设为Page



Ke 2011-10-31 17:18 发表评论
]]>
iReport与JasperReport?/title><link>http://www.aygfsteel.com/keweibo/articles/239492.html</link><dc:creator>Ke</dc:creator><author>Ke</author><pubDate>Sun, 09 Nov 2008 01:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/keweibo/articles/239492.html</guid><wfw:comment>http://www.aygfsteel.com/keweibo/comments/239492.html</wfw:comment><comments>http://www.aygfsteel.com/keweibo/articles/239492.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/keweibo/comments/commentRss/239492.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/keweibo/services/trackbacks/239492.html</trackback:ping><description><![CDATA[     摘要: 文章来源Qttp://blog.163.com/liushuo216@126/blog/static/1814432020087534517426/ 一、iReport与JasperReport?1.1   ?JasperReport是报表的引擎部分Q界面设计是用iReport。ؓ什么选择q两个Y件呢Q因两个软g都是开源的Q即免费?虽然某些文档收费Q但是磨?..  <a href='http://www.aygfsteel.com/keweibo/articles/239492.html'>阅读全文</a><img src ="http://www.aygfsteel.com/keweibo/aggbug/239492.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/keweibo/" target="_blank">Ke</a> 2008-11-09 09:55 <a href="http://www.aygfsteel.com/keweibo/articles/239492.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iReport 的用入?/title><link>http://www.aygfsteel.com/keweibo/articles/239491.html</link><dc:creator>Ke</dc:creator><author>Ke</author><pubDate>Sun, 09 Nov 2008 01:47:00 GMT</pubDate><guid>http://www.aygfsteel.com/keweibo/articles/239491.html</guid><wfw:comment>http://www.aygfsteel.com/keweibo/comments/239491.html</wfw:comment><comments>http://www.aygfsteel.com/keweibo/articles/239491.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/keweibo/comments/commentRss/239491.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/keweibo/services/trackbacks/239491.html</trackback:ping><description><![CDATA[     摘要: iReport 的用入?文章来源Qhttp://blog.chinahr.com/blog/vincent860214/post/99218 Author: liuxiaohua mailto: vincent860214@126.com 一、iReport 是什?    iReport是一个能够创建复杂报表的开源项目,q且它能调用Jasper...  <a href='http://www.aygfsteel.com/keweibo/articles/239491.html'>阅读全文</a><img src ="http://www.aygfsteel.com/keweibo/aggbug/239491.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/keweibo/" target="_blank">Ke</a> 2008-11-09 09:47 <a href="http://www.aygfsteel.com/keweibo/articles/239491.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ߺ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank">հ</a>| <a href="http://" target="_blank">ν</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͭϿ</a>| <a href="http://" target="_blank">ʶ</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">Ϸ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƺ</a>| <a href="http://" target="_blank">ֲ</a>| <a href="http://" target="_blank">ƽң</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ɳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank">˾</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɳ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>