TestMutiUserDesign.java is primarily designed for creating four reports at the same time using the methods provided by the Designer API.
Before using the sample program to create reports, it is assumed that TestCatalogAPI.java in C:\JReport\Designer\help\designer\samples has been run to generate a catalog file Tutorial.cat in C:\JReport\Designer\Demo\Reports\APITutorial.
With this sample program, three reports are created:
The constructor of MultiUserDesigner has two parameters: path and name. They are respectively the path and name of the catalog with which the reports will be created.
This method creates a new report and returns its handle. Parameter name is the name of the report that is to be created, Invoice is the name of query in the catalog file SampleReports.cat on which the report is created, and User is the UID of the user.
This method gets all handles of PAGE type and returns a handle array. Parameter report is the parent handle, and Designer.PAGE is the class type value defined in the Designer class.
|
|