Retrieving the SchedulingInfo interface and setting scheduling options

To retrieve the SchedulingInfo interface, use the InfoObject's SchedulingInfo property.

To schedule a report with a custom value
  1. Retrieve the report using InfoStore.Query.
  2. Retrieve the SchedulingInfo interface.
  3. Set the usual scheduling options.
  4. Add the custom value using the InfoObject Properties property.
  5. Schedule the report.

Example

InfoObjects = IStore.Query("Select SI_NAME, SI_ID From CI_INFOOBJECTS Where SI_ID=" + ID);

var ScheduleInfo ;

ScheduleInfo = InfoObjects.Item(1).SchedulingInfo;

Now set the regular scheduling options. This report will be set to run immediately and only once.

ScheduleInfo.Type = 0;

ScheduleInfo.RightNow = true;

Go to the next step: Adding the custom value and scheduling the report.



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