on 08-24-2009 3:23 PM
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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.