Dynamic delivery to a single e-mail recipient

For this example, you will need to create a report book and enable it for dynamic delivery. You will also need to create a scheduled task.

See these topics:

This example delivers a report to a single email address that is specified in a global variable.

  1. Create a report and name it DeliveryDriver
  2. Place a combo box in the report and populate it with a list.
    Note: A separate report will be delivered in respect of each element in the list.
  3. Create a global variable and name it gv_email.
  4. Populate gv_email with a valid email address.
  5. Create a report book.
  6. Select Enable dynamic delivery on the General tab of the report book.
  7. On the Reports tab, make DeliveryDriver the first report in the Report List.
  8. Select DeliveryDriver in the Report List and click Delivery Report on the toolbar.
    The Report Parameters section displays the combo box of the DeliveryDriver report.
  9. Click the Deliver By checkbox of the combo box.
    A report will be created and delivered in respect of specified elements in the combo box.
  10. In the Elements column of the Report Parameters section, specify the elements in respect of which reports will be generated.
    By default, Current Selection is selected - a report will be generated in respect of the element which is currently selected in the list. If you select All Elements, a report will be generated, and a separate mail sent, for each element in the list. This can result in a large number of reports. To generate reports in respect of two or more list elements, select Select Element and specify the elements in the Select Elements dialog.
  11. Open the DeliveryDriver report and select Design Mode.
  12. Right-click DeliveryDriver in the Report Catalog pane and select Report Actions
    The Define Action dialog is displayed.
  13. Select Deliver report book as the Type.
  14. Select When [report book name] is printed as the Mode of the Deliver report book action.
  15. Specify gv_email as the value of the Email to input of the action and click OK.
  16. Create and enable a scheduled task to export the report book.
  17. Click the Email tab of the scheduled task.
  18. Click Send email and Attach report.
  19. Click Use dynamic recipient list.
  20. Specify a subject of the email.
  21. Specify the time at which the scheduled task will execute.

    See Creating scheduled tasks.

    In this example, when the scheduled task executes, the report book is delivered to the email address specified in gv_email. The subject of the email is the subject specified on the Email tab of the scheduled task.