#### Example 4: Publishing a report set to printer

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

1. Take steps 1, 2 and 3 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 set 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 to JReport Enterprise Server, and you schedule a report set to publish to printer, the server may crash or throw an exception.