1. Environment
L Report Designer: You can download the latest version to http://download.eclipse.org/birt/downloads/, the latest version is birt-rcp-report-designer-2_0_1. Extract the downloaded zip archive to the appropriate directory, such as: E:/birt-rcp-report-designer-2_0_1.
L Operational Environment: You can download the latest version to http://download.eclipse.org/birt/downloads/, the latest version is birt-runtime-2_0_1. Unzip it to the appropriate directory, such as: E:/birt-runtime-2_0_1.
L can run the server: I use the tomcat5.0,jdk1.4.2.
L Other: Download the required jar package, including iText1.3, Prototype.js v1.4.0, all two jar packages can be downloaded in http://download.eclipse.org/birt/downloads/. Place the downloaded Itext1.3jar package in the E:/birt-runtime-2_0_1/web Viewer example/plugins/org.eclipse.birt.report.engine.pdf/lib directory, The Prototype.js v1.4.0 package is placed in the E:/birt-runtime-2_0_1/web Viewer example/ajax/lib directory.
2, Birt deployed to the project.
1. Download Birt-runtime-2_0_0.zip from the Eclipse Birt official website.
2. After decompression, you need the contents of the Web view example directory.
3. Check and copy the following third-party packages to the Web View Example directory: (generally do not change, IText 1.3 This item can be ignored regardless, if the PDF format can not be output, refer to the following)
|
Required JAR files
|
Copy Location
|
Apache Axis |
Axis.jar Axis-ant.jar Commons-discovery-0.2.jar Jaxrpc.jar Saaj.jar Wsdl4j-1.5.1.jar |
Web-inf/lib |
IText 1.3 |
Itext-1.3.jar |
Plugins/org.eclipse.birt.report.engine.emitter.pdf/lib |
Prototype.js v1.4.0 |
Prototype.js v1.4.0 |
Ajax/lib |
4. Publish the Web View example directory to a Web container, such as Tomcat, and copy the contents into the Web project's file, and paste the contents of the Web. xml file inside the website view example into the project's Web. xml file.
6. Publish a design-completed report file that you can create in a Web project to hold the report design file in the reports directory.
7. You can access the report by using the correct format of the access path in the app, for example: http://localhost:8080/birtApp/frameset?__report= report file path.
This web app supports 2 of actions:
Frameset, displays the report in the form of frameset. This interface contains frames, such as page navigation, where the body of the report is displayed in a frame, using the form:
Http://localhost:8080/birtApp/frameset?__report= report File path & parameters = ...
options |
Description |
__format |
Report output format: HTML or PDF, default is HTML. does not work for frameset. |
__isnull |
Indicates that a parameter is null and is commonly used for string types. If a parameter is supplied and the value is empty:-for date and number types, Birt treats them as null. -For a string, Birt will use it as an empty string. Therefore, to illustrate that a string is null, it is usually written as: __isnull= parameter. |
__locale |
Localization option, default is the JVM locale. |
__report |
Report design file path. |
Report parameter |
Report parameter parameter value pair, form: Parameter name = parameter value. For frameset, entering parameter name = parameter value directly in the address bar will not affect report results. Although, when run report is selected, the value of the parameter that pops up has changed. |
Run, the report is displayed as a separate HTML page or PDF, because this form is not frmaeset, so the user must provide the corresponding parameters, such as report parameters, page numbers, etc. form of Use:
Http://localhost:8080/birtApp/run?__report= report File path & parameters = ...
For the above 2 actions, the available parameters are listed below:
While this section is about integration for Web applications, this approach can also be integrated with non-Web applications. At this point, we can take a workaround: Using an inline web container, such as jetty, in a non-web application can also achieve the same effect. This approach is similar to the eclipse approach. Remember to use report-to-run reports at report design time. That pop-up form is actually a Web page.