ireport

getting error in hive

这一生的挚爱 提交于 2020-01-22 12:57:46
问题 When i am connected to the ireport, then if a say show tables in hive shell,this error is coming: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask 回答1: Have you copied the jar containing the JDBC driver for your metadata db into Hive's lib dir? For instance, if you're using MySQL to hold your metadata db, you wll need to copy mysql

Jasper Reports: JRBeanCollectionDataSource cannot be resolved to a type

你。 提交于 2020-01-22 12:35:48
问题 I'm building a chart in iReports and when I compile in Eclipse I get the following error: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. net.sf.jasperreports.engine.JRBeanCollectionDataSource cannot be resolved to a type value = new net.sf.jasperreports.engine.JRBeanCollectionDataSource(((java.lang.String)field_chartData46xAxis.getValue())); //$JR_EXPR_ID=11$ <----------------------------------------------------> 2. net.sf

Font 'Trebuchet MS' is not available to the JVM

半城伤御伤魂 提交于 2020-01-16 05:43:46
问题 I am using ubuntu OS for ireport pdf generation.The exception is Trebuchet MS not found by jvm.I have not installed msfont package in ubuntu.when i added external font in (option->font) to ireport tool then it is compiling and generating pdf But when i am generating through java code it is throwing exception.I added the ttf font jar to class path but still the exception is coming.Is jvm depends on font pkg installed in OS as Trebuchet MS is windows font which is not installed in my OS. Thanks

Passing SUBREPORT_DIR to subreport when the path points inside a JAR file [Jasper Reports 4.5]

半腔热情 提交于 2020-01-13 05:52:09
问题 I'm having problems passing the SUBREPORT_DIR path to my subreport. The reports are actually in the same folder, but inside a JAR file. I've tried something like this (might be inaccurate): parameterList = new HashMap<String, Object>(); URL mainReport = this.getClass().getResource("mainReport.jasper"); String mainReportPath = mainReport.getPath(); String subreportDir = mainReportPath.substring(0, mainReportPath.lastIndexOf("/")+1); parameterList.put("SUBREPORT_DIR", subreportDir); This path

How to make editable PDF fields in a Jasper report

心不动则不痛 提交于 2020-01-11 04:49:06
问题 Is there a way to export a Jasper report in PDF where designated fields can be left editable? I'm using iReport to design the report templates. 回答1: It's not possible today. It's an unusual requirement, but it's not unreasonable. It's really not an iReport limitation but rather a JasperReports limitation. If anyone coming to this post in the future would like to have this feature, the best thing to do would be to log it in the Jaspersoft bug tracker. 回答2: Two facts: iText can do it. http:/

JAVA通过iReport生成PDF

孤街醉人 提交于 2020-01-10 13:01:24
一、成果展示 左边为通过iReport工具制作的展示模板,右侧为最终生成的PDF文档 二、大概介绍 通过sql语句查询所需内容,并在$F{field}中展示出 三、制作过程 1.下载iReport工具 下载地址:https://nchc.dl.sourceforge.net/project/ireport/iReport/iReport-5.6.0/iReport-5.6.0.zip 百度网盘:https://pan.baidu.com/s/1B38Gq996wJT5osOdR04iag 提取码:ve3f 解压即可使用 注:需要jdk1.7支持, 打开文件E:\iReport-5.6.0\etc\ireport.conf,添加jdkhome=“D:\Program Files\Java\jdk1.7.0_80” 若java环境为1.7即可跳过此步骤 2.打开软件 点击E:\iReport-5.6.0\bin\ireport.exe启动软件 新建模板 名称和保存地址 主要区域 如果没有组件面板,通过这儿来打开 3.主要区域介绍 区域1:有用的是Fields,所有页面中需要展示的字段通过这边来添加,添加的字段与数据库中的字段一致 区域2: 第一个按钮是写sql语句的 第二第三个按钮就不介绍了,pass 第四个按钮是通过user.jrxml文件生成user.jsaper文件

Linking subreports in iReport so they also work in Jasper server

夙愿已清 提交于 2020-01-10 08:30:07
问题 Using iReport v4.0.1 with Jasperserver v4.1.0 I'm trying to find a syntax for linking subreports to the main report that lets me test it in iReport then deploy to the server through the repository browser. The default syntax for sub-reports in iReport for the subreport expression is something like $P{SUBREPORT_DIR} + "mySubReport.jasper" When you deploy this from iReport it's smart enough to pick this up and suggest changing it to "repo:mySubReport.jrxml" and to then deploy all subreports to

ireport的使用

雨燕双飞 提交于 2020-01-10 04:16:39
ireport的使用 什么是JasperReports和iReport? JasperReport本身是开发报表的一个格式非常复杂的XML文件,并且真实中项目的需求是千变万化的,不可能完全写Java代码去开发它;事实上,如果不使用可视化工具的话,根本就无法开发它。所以JasperReport为我们提供了一个可视化的辅助工具,即iReport。 iReport是为JasperReports设计的强大的,直观的,易于使用的可视化报表设计器,采用纯Java开发。 一,简单创建PDF模板 1.1 安装ireport iReport-Designer for JasperReports下载地址: https://sourceforge.net/projects/ireport/ 注意: iReport-Designer不支持Java8的环境,所以只能使用jdk1.7 问题: iReport-Designer下载完打不开 找到目录下 /ireport/etc/ireport.conf 文件,找到被注释的#jdkhome=“XXX/jdk”, 删除注释,修改为自己的jdk路径 # ${HOME} will be replaced by user home directory according to platform default_userdir="${HOME}/.${APPNAME}/5

Manipulate Time range of Gantt chart with iReport

爱⌒轻易说出口 提交于 2020-01-05 12:29:23
问题 I'm trying to develop a Gantt chart in iReport , but the time range is displayed in months. I want it to be in date or week. Is this possible in iReport ? 回答1: I'm unfamiliar with ireport, but you may be able to use the approach shown here by specifying DateTickUnitType.DAY and the desired interval. A related example may be found here. 回答2: You can extend page width and the chart width to accommodate shorter ranges. The intervals automatically adjust to available page width. 来源: https:/

iReport issue with isStretchWithOverflow

爱⌒轻易说出口 提交于 2020-01-04 01:49:31
问题 Currently I use the attribute isStretchWithOverflow to break the lines when the content in text field is too long. It works. But I want to know how can I determine the way it breaks lines. Below is the snippet of my jrxml file: <textField isStretchWithOverflow="true"> <reportElement positionType="Float" width="150" height="20"/> <box leftPadding="15"> </box> <textFieldExpression><![CDATA[$F{content}]]></textFieldExpression> </textField> For the content like oh my god test="longstring" abcdefg