jasperreport生成pdf_jasperreport 导出excel_jasperreport json(68)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

initial XML form into the compiled form, before being used to generate full-featured documents.

The engine first parses the XML report design and creates the in-memory representation of it by

instantiating and preparing a dori.jasper.engine.design.JasperDesign object. This object is

then subject to various validation checks and suffers the compilation process that produces a

corresponding dori.jasper.engine.JasperReport object.

But in certain cases, in your application, you might want to manually load the XML report design into a

dori.jasper.engine.design.JasperDesign object, without immediately compiling it. Such

scenarios might be common for applications that programmatically create report designs and use the

XML form to store them temporary or permanently.

Loading dori.jasper.engine.design.JasperDesign objects from XML report design can be

easily by calling one of the public static load() methods exposed by the

dori.jasper.engine.xml.JRXmlLoader class. This way you can load report design object from

XML content store in filed or that is been read from input streams.

The process opposed to the XML report design loading process is the generation of the XML form for a

given report design object.

As seen above, sometimes report designs are created programmatically, using the JasperReports API.

The report design objects obtained this way can be serialized, for disk storage or transfer over the

network, but they also can be stored in XML format.

You can obtain the XML representation of a given report design object by using one of the public static


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-68.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...