SAP Knowledge Base Article - Public

1417339 - How to find the last date defined for an Enterprise calendar using .NET C#

Symptom

When looking at a Calendar in the CMC, you can't always tell when it ends.  Just because every Friday is selected for the next year doesn't mean that those repeating Fridays weren't set to end 3 years from now.  Without paging all the way to the end (9999) or at least as far as you care about (maybe 4 or 5 years), there's no way to know for sure.

Environment

  • BusinessObjects Enterprise XI Release 2
  • BusinessObjects Enterprise XI Release 3.1
  • .NET C#

Resolution

A sample is attached to the note: NET_CS_Enterprise_BE12_Calendar_End.

It queries for all of the calendars and examines their CalendarDays, remembering the latest one.

Keywords

calendar end last latest stops defined day date net c# cs enterprise , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V0 ; Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2

Attachments

NET_CS_Enterprise_BE12_Calendar_End.zip