如何使用Pentaho和Java生成包含图表的报告? [英] How can I generate reports containing charts with Pentaho and Java?

查看:85
本文介绍了如何使用Pentaho和Java生成包含图表的报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个基于Java EE的Web应用程序,我们想将Pentaho报告API集成到此应用程序中。

We have a Java EE based web application and we want to integrate Pentaho reporting API into this application.

因此,我正在尝试了解Pentaho如何自动生成包含图表的报告。我已经下载了Pentaho BI服务器并使用了几天。但是我仍然对以下问题一无所知:

So, I'm trying to learn how Pentaho can automatically generate reports containing charts. I have downloaded Pentaho BI server and played with it for a few days. But I'm still clueless about the following issues:


  1. 如何在运行时动态生成报告而不加载那些* .prpt文件。
  1. How to generate reports dynamically at runtime without loading those *.prpt files.
  2. Where I can get a simple tutorial about dynamic report generation
  3. What the difference is between Community Dashboard Framework, charting tools and reporting tools.

社区仪表板框架站点上的文档没有正确组织,并且没有关于入门的教程。

The documentation on the Community Dashboard Framework site is not properly organized, and there is not a single tutorial about getting started.

如果有人可以帮助我找到一些问题的答案,那就太好了!

If anyone can help me find the answers to some of my questions, it will be great!

推荐答案

您可以仅通过报告引擎的API定义报告。 Samrat正确地说,定义报告的首选方法是报告设计器-因为代码更改比GUI可编辑的外部报告定义更难以维护。

You can define reports purely via the API of the reporting engine. Samrat is right on that the preferred way of defining reports is the report designer - as code changes are harder to maintain than changes of a GUI-editable external report definition.

我认为最好的方法是阅读Will Gorman关于 Pentaho Reporting 3.5 for Java Developers的书,该书为您提供了深入的了解报告引擎,以及如何动态定义报告。

I think the best way to go forward is to grab Will Gorman's book about "Pentaho Reporting 3.5 for Java Developers" which gives you a deep insight into the inner workings of the reporting engine and also how to define reports dynamically.

CDF与报告:CDF是用于创建交互式仪表板的JavaScript工具包。仪表板旨在提供有关公司状态的高级别概述,并具有向下钻取甚至自定义功能的能力。报告引擎生成的报告是预定义/固定报告,我们希望它们经常运行以回答特定的业务问题。图表组件只是根据一组输入参数为仪表板生成给定图表的组件。

CDF vs Reporting: CDF is a javascript toolkit for creating interactive dashboards. Dashboards are aimed to provide a high-level overview over the state of your company with the ability to drill down or even customize them. Reports produced by the reporting engine are predefined/"canned" reports that we expect to be run frequently to answer specific business questions. Charts components are just components that produce a given chart for dashboards based on a set of input parameters.

CDF使用报告和图表作为仪表板中的内容。

CDF uses reports and charts as content in dashboards.

这篇关于如何使用Pentaho和Java生成包含图表的报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆