Example 4: Publishing a report to printer

In this example, you will learn how to set up a task to publish the report result to a printer.

  1. Take steps 1 and 2 as in Example 1.
  2. In the Publish tab of the Schedule dialog,
    1. Select the To Printer sub tab and then check Publish to Printer.
    2. Select a JDK print method for the report result in the Select Print Method field.
    3. Type a name with the path of the printer in the Printer field.
  3. In the Conditions tab, select the Time sub tab, define the time zone from the Time Zone drop-down list, then from the Time Type drop-down list of the Time tab, choose Run this task immediately.
  4. If you want to notify someone of when the task is finished by sending an e-mail, go to the Notification tab and set the settings.
  5. If you want to specify a timeout for the task, specify the settings in the Duration tab as required.
  6. Click Finish to have the task performed.

Then, click My Tasks on the system toolbar. When the task is being performed, you can see a record of it in the Running tab and on completion it will be put into the Completed tab.

Note: When there is no printer connected with JReport Server, and you schedule to publish a report to a printer, the server may crash or throw an exception.