This example is designed for submitting a schedule without using a GUI to generate a report version every hour from 9:00 to 17:00 daily. Also, the version manager will keep each of the generated results for 30 days from the day that they are generated.
To schedule the task, follow the steps below:
import jet.client.api.*;
|
|
The method getScheduled(Frame frame, String jrsvrURL) returns the scheduled tasks from the report server.
Parameters:
|
When you run the programs, you should provide the parameter -server= which indicates the server URL. For example, use the following command to run the demo program.
|
There are also the following optional parameters:
By running the program, you will submit a scheduled task and obtain information about this task.