Ireport and JasperReport Integrated Development Web Report Wizard (1) JPLATEAU [Original]

xiaoxiao2021-03-06  195

Excerpted from: http: //dev.9cbs.net/develop/Article/22/22935.SHTM IREPORT and JASPERREPORT Integration Development Web Report Wizard (1)

?

?????? I was in contact with Ireport and JasperReport a week. Downloading initially, they didn't attract my interest (or trust), mainly their version of the problem (I have never dare to use the version less than 1.0 Tool software, currently their version: Ireport0.2.2, jasperreport0.5.0), but I heard that someone is using them, so I have read it carefully (because I have always used browser printing because of the Web printing of Java applications. It is very painful, so I would like to be credible to it, huh, huh ...) A week, I tried some demand points about the report on the report, I found that they can solve it, really happy, so I recommend them today. Give everyone. In fact, we are just JasperReport, Ireport is a visual development tool for JasperReport (do not look at its interface, we have to do it to help us get easy.), Of course Ireport has other use, but here Not elaborate. There is almost no Chinese introduction to the introduction of their integration development, although I don't prepare for very detailed introduction, I only write some experience, there is no shortage to taste, if you want to study them, please also ask them. Read them in English documents. JasperReport's supporting document is very detailed. This document is charged, but there is a circulating electronic version on the Internet. I am fortunate to get a copy. If you need to get it to my site (http://plateau.sicool.com), thank you JasperReport's contribution to the open source world. On the contrary, IREPORT has nothing more. Perhaps the author thinks it is simple enough J, I am also an experienced experience in countless exploration. ?

Ok, let us enter the journey of the above three to integrate reports ...?

1. First you have to get the latest version, you can download the address below?

Irport: http://ireport.sourceForge.net JasperReport: http://jasperreports.sourceforge.net?

Their configuration is also very simple: iReport decompresss the Ireport.bat file after editing the directory after contraction, as follows?

@echo off?

Set java_home = c: / jdk14 set ant_home = d: / ant set ing = h = C: / Documenti / PROGETTI / IREPORT / IREPORT2 /?

REM% ANT_HOME% / bin / ant javadocs% ANT_HOME% / BIN / ANT IREPORT?

Is it very simple, you only need to set some of the corresponding roads, here is Ant to run, of course, if you don't have an Ant, you don't want to install it, then you can, but here I bought an official, you can go Find the corresponding operating method in the directory after decompression. Oh, install Ant J JasperReport does not need any configuration, you only need to put the JAR package after downloading to ClassPath. Oh, it is simple, but if there is no Ireport to do "dirty" for us, what will be the pain of the report?! ?

?

2. ? How is JasperReport work? Here I will say it simply. First, there is an XML file first, then compile into a Jasper file (end of .jasper), we really want to use .jasper files after compilation, this is much like we are familiar with .jsp file, in fact, we call it compilation Subsequent servlet.

(Image from http://ireport.sourceforge.net/cap3.html#3.1)?

However, the static report does not mean, so there is a saying: "A Datasource a jasper = a print"?

It can support the output format as follows: PDF, HTML, XML, XLS, CVS, etc. ?

Therefore, JasperReport's original input is a .xml document, imagine that there is a simple report to the XML file, which is there, how painful before Ireport is used. (I am incredible, I have used JasperReport to do reports, but they haven't used Ireport, day!) Now I don't have to be afraid, use Ireport to easily get this XML, write here, I think of struts_config .xml, there have also been a lot of editor about it, huh, huh J?

If you want to do a report, if you want to do a report, you have a long time to familiarize yourself with JasperReport's document, a use of familiar documents is to write that XML file, now you are familiar with the time you are familiar with IREPORT. ?

3. ? Ireport first look at this (Rich and Very Simple To User GUI):?

?

If you have had experience in developing reports in VB or other development tools, this interface should be very familiar. If you happen, you are familiar with Java language, wow, then you should use Ireport to be confused, huh, J ?

Today, I said this, late, I have to sleep, I will focus on Ireport tomorrow. Hurry, you will use it first.

Welcome to my site http://plateau.sicool.com?

JPLATEAU is written in Guangzhou on Thursday, December 25, 2003.

转载请注明原文地址:https://www.9cbs.com/read-128356.html

New Post(0)