没有合适的资源?快使用搜索试试~ 我知道了~
JasperReports最终用户手册中文版报表设计分享.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 16 浏览量
2021-12-18
08:17:24
上传
评论
收藏 189KB PDF 举报
温馨提示
试读
7页
JasperReports最终用户手册中文版报表设计分享.pdf
资源推荐
资源详情
资源评论
第四章 报表设计
注: CJSDN.COM haibo 译 转载请注明译者和出处 ethonsmith@hotmail.com
“报表设计( report design)”是一个模板 ,JasperReports 引擎会用它来传递动态内容到
打印机,屏幕或者是 Web 页面。存储于数据库中的数据会根据报表的实际设计来填充整个
报表,打印到页面导向的文档。
The report design represents a template that will be used by the JasperReports engine to
deliver dynamic content to the printer, to the screen or to the Web. Data stored in the database is
organized
during the report filling process according to this report design to obtain ready to
print, page oriented documents.
通常,一个“报表设计”包含了关于数据填充后所形成的报表( documents )的结构和所
有的其他方面的信息。 这些信息包括将要输出到报表上的各种文本, 图像元素的位置,内容, 以
及要进行的数据计算,自定义计算,分组,操作等信息。
Generally speaking, a report design contains all the information concerning the structure and the
aspect of the documents that will be generated when the data will be provided. This information
concerns the position and the content of various text or graphic elements that will appear on the
document, their appearance, the custom calculations, data grouping and data manipulation that
should be performed when generating the documents, etc.
一般, “报表设计( report design )”用一种特殊的结构定义在 Xml 文档中(我们会在稍后详
细分析),在被填充数据前, 这一过程属于 JasperReports 报表的编辑阶段。 但是“报表设计 ( report
design)”也可以用 JasperReports API 以编程的方式在内存中构造 .随JasperReports 项目源文件一
起提供了一个 noxmldesign (No Xml Design ) 例子介绍了如何直接在内存中创建“报表设计
(report design )”,而不用编辑 Xml 文档。
Normally, the report designs are defined in XML files with a special structure that we shall see in
detail later and are subject to the JasperReports compilation process before being filled with data.
But they also can be constructed in-memory, programmatically, using the JasperReports API.
There is a sample called noxmldesign shipped with the JasperReports project source files that
shows how to directly create in-memory report designs, without editing any XML files at all.
4.1 DTD 文件引用
用Xml 文档来编辑“报表设计( report design )”时, JasperReports 用它自己内部专用的
DTD 文件来校验这个文档内容。如果 XML 校验通过,那表示这个 XML “报表设计( report
design)”符合 JasperReports 所需要的 XML 文档结构和语法, JapserReports 引擎也可以编译
这个文档来输出“已编译”的“报表设计( report design )”.
When working with XML report designs, JasperReports uses its own internal DTD files to
validate the XML content it receives for processing. If the XML validation is passed, it means that
the supplied report design corresponds to the JasperReports required XML structure and syntax
and the engine is able to generate the compiled version of the report design.
正确的 Xml “报表设计”通常标明用于校验它本身的 JasperReports 内部专用的 DTD 文件。
如果不标明引用这个文件, 报表编译便会失败。 这个应该不复杂, 因为这个引用在每个“报表设
计( report design )“里通常都是一样,你只要简单的复制他就行了。初始设计报表,你可以从
本书的例子 里复制。
Valid XML report designs always point to the JasperReports internal DTD files for validation.
Without the DTD reference specified, the report compilation process fails abruptly. This should
not be considered a too much burden for anybody since the DTD reference is always the same and
资源评论
czq131452007
- 粉丝: 2
- 资源: 12万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功