PentahoReportDesigner入门教程(三)

php中文网
发布: 2016-06-07 16:03:34
原创
1670人浏览过

Pentaho Report Designer 入门教程(三) 采用Pentaho Report Designer5.1版本,也是最新的版本。 一、 安装和介绍 介绍部分内容略,首先安装jdk,并配置java相关环境变量,下载pentaho report并解压,直接运行即可。 二、 第一个示例 三、在Swing程序中集成

Pentaho Report Designer 入门教程(三)

采用pentaho report designer5.1版本,也是最新的版本。

一、 安装和介绍

介绍部分内容略,首先安装jdk,并配置java相关环境变量,下载pentaho report并解压,直接运行即可。

二、 第一个示例

三、在Swing程序中集成

四、在j2ee程序中集成

? 新建web项目

? 编写ant脚本,编译运行项目

Codapp 扫码点餐小程序(含H5系统)
Codapp 扫码点餐小程序(含H5系统)

Codapp 外卖点餐系统是一款专为快餐店、奶茶店、咖啡店、糕点店等商户打造的移动点餐解决方案,支持自提与外卖两种模式,可快速部署上线使用。 该系统支持微信、支付宝支付,并接入腾讯地图与百度地图,支持第三方配送(如达达)与商家自主配送,助力门店实现智能点单与订单管理。 功能特点: 微信小程序&H5移动端双端点餐:无需下载 App,直接扫码下单 支持多门店管理:一套系统可管理多家门

Codapp 扫码点餐小程序(含H5系统) 0
查看详情 Codapp 扫码点餐小程序(含H5系统)

? 测试通过servlet 访问不同文件格式的报表

publicvoid init(ServletConfig config)throws ServletException {

ClassicEngineBoot.getInstance().start();

super.init(config);

}

protectedvoiddoGet(HttpServletRequest request,

HttpServletResponse response)throws ServletException, IOException {

try {

ResourceManager manager =new ResourceManager();

manager.registerDefaults();

String reportPath = "file:"

+ this.getServletContext().getRealPath(

"data/ch2_1.prpt");

Resource res =manager.createDirectly(newURL(reportPath),

MasterReport.class);

MasterReport report = (MasterReport)res.getResource();

// determine the output format and renderaccordingly

String outputFormat =request.getParameter("outputFormat");

if ("pdf".equals(outputFormat)) {

// render thepdf

response.setContentType("application/pdf");

PdfReportUtil.createPDF(report,response.getOutputStream());

} elseif ("xls".equals(outputFormat)) {

// render in excel

response.setContentType("application/vnd.ms-excel");

ExcelReportUtil.createXLS(report,response.getOutputStream());

} elseif ("rtf".equals(outputFormat)) {

// render inrtf

response.setContentType("application/rtf");

RTFReportUtil.createRTF(report,response.getOutputStream());

}

} catch (Exception e) {

e.printStackTrace();

}

super.doGet(request, response);

}

? jsp或html文件调用servlet

Example Application

This is an exampleapplication demonstrating how to embed

Pentaho Reporting into yourweb application.

Generate PDF Report

Generate Excel Report

Generate RTF Report

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号