cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling Report for Every Week on x day

Former Member
0 Kudos

Hi there,

Please could someone either provide me with some sample code or point me in the direction of some documentation that explains how I can programatically set the schedule on a crystal report running on Crystal server XI to run every week on a specified set of days.

I am assuming that I need to use something like the following:-

ceScheduleInfo.Type = CeScheduleType.ceScheduleTypeWeekly

ceScheduleInfo.RightNow = False

ceScheduleInfo.BeginDate = ScheduleRow("StartDate").ToString

ceScheduleInfo.EndDate = ScheduleRow("EndDate").ToString

I have no idea how I should specify that the weekly schedule should run on (for example) Monday, Wednesday and Friday

Regards

Lloyd

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi all,

Typically, the moment I posted this I found the answer.

For your info:-

ceScheduleInfo.Type = CeScheduleType.ceScheduleTypeCalendar

ceScheduleInfo.RightNow = False

ceScheduleInfo.BeginDate = ScheduleRow("StartDate").ToString

ceScheduleInfo.EndDate = ScheduleRow("EndDate").ToString

ceScheduleInfo.CalendarRunDays.Add(CDate(ScheduleRow("StartDate").ToString).Day, _

CDate(ScheduleRow("StartDate").ToString).Month, _

CDate(ScheduleRow("StartDate").ToString).Year, _

CDate(ScheduleRow("EndDate").ToString).Day, _

CDate(ScheduleRow("EndDate").ToString).Month, _

CDate(ScheduleRow("EndDate").ToString).Year, _

CeDayOfWeek.ceDayThursday, 0)

former_member183750
Active Contributor
0 Kudos

Lloyd thank you for sharing the info. I am sure it will save another soul time and possibly some sanity too :).

Ludek