Lesson 3d: Scheduling reports

The ScheduleReport function that is included in this lesson enables an instance of a Crystal Report to be created and ensures that the report uses the most recent data available. Reports with static data may need to be scheduled once only, whereas reports with dynamic data may need to be scheduled once a week or once a day.

In this example, you'll give the user the option to schedule the report by hours and minutes, and only in a Crystal Reports format. This requires retrieving the desired schedule from the user and writing the request to the APS. To do this, only the ID of the report is needed.

Two pages will be used to schedule the report: the first is a form allowing the use to select scheduling options, and the second schedules the report on the server.

Gathering scheduling information from the user

In order to gather the scheduling information needed by this function, it is necessary to provide the user with a form that provides these options. Unlike the page used to rename the report, this one will take the Report ID and the Folder ID as parameters. The Folder ID is necessary so that you can provide a link to the current folder. This page, in turn, redirects the data to Schedule.csp that actually schedules the report.

Before learning how to schedule a report, you may want to look at the following ScheduleForm.csp.

Go to next step:

Scheduling a report on the server



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com