I used the following link to create a calendar-style report in Crystal Reports for .NET 2005, however, the data for the subreport is not displaying.
http://www.ml-crystal.com/articles/calendar.htm
Here" target="_blank">http://www.ml-crystal.com/articles/calendar.htm" target="_blank">http://www.ml-crystal.com/articles/calendar.htm">http://www.ml-crystal.com/articles/calendar.htm
Here is the VB.NET code that I am using to pass data to the report...
objMyDates = GetMyDates(Me.cmbCalendarSpan.Text, s_intYearToView)
objScheduledItems = GetScheduleDetail(s_intYearToView)
objReport = New rptAuditSchedule
objReport.SetDataSource(objMyDates)
objReport.Subreports.Item("Sun").SetDataSource(objScheduledItems)
objReport.Subreports.Item("Mon").SetDataSource(objScheduledItems)
objReport.Subreports.Item("Tue").SetDataSource(objScheduledItems)
objReport.Subreports.Item("Wed").SetDataSource(objScheduledItems)
objReport.Subreports.Item("Thu").SetDataSource(objScheduledItems)
objReport.Subreports.Item("Fri").SetDataSource(objScheduledItems)
objReport.Subreports.Item("Sat").SetDataSource(objScheduledItems)
frmScheduleViewer.LoadReport(objReport)
frmScheduleViewer.Show()
I have verified that my calls to GetMyDates and GetScheduleDetail return data (they both pass back arrays of DataRows), but the data for the subreport (GetScheduleDetail) just doesn't show up on the report. Any help would be greatly appreciated.