Preparations

Before you can use the Designer API to perform certain tasks, you need to first make the following preparations.

Setting the license key

The license information is set via a method called setUserInfo(String uid, String key), where UID is the user ID, and key is the license key. This method should be called before you can call any other Designer API methods.

Getting handle information

All the objects in a report are organized into and browsed from a tree structure. For each report, the Report Inspector consists of a report objects tree at the top of the view panel and its corresponding reporting features or properties at the bottom. Selecting any object node on the tree also selects the same element in the report design area. The two diagrams below cover all objects that can be used in a report with their relationships.

Note: The down arrow indicates a Father-Children inheritance for objects.

Every node and object in the report tree is identified by a HANDLE in JReport Designer API. Therefore, before you can create or edit a report with the Designer API, you will first have to get the handle information. Super class API provides the following methods to get handles of different nodes and different types.

Parameters