Dim
objReport1 As New SubReportClass
objReport1.ConnectString = ConnectString
objReport1.DateID = DateID
objReport1.StudentID = StudentID
objReport1.ID = value
Me.SubReport1.ReportSource = objReport1
Dim
section As Processing.DetailSection = (TryCast(sender, Processing.DetailSection))Dim dataRowView As DataRowView = TryCast(section.DataItem, DataRowView)
Dim objReport2 As New SubReportClass2
objReport2 .ConnectString = ConnectString
objReport2 .DateID = DatumID
objReport2 .StudentID = StudentID
objReport2 .GoalID = Integer.Parse(dataRowView("ID").ToString)
Me.SubReport2.ReportSource = objReport2
This shows results but what happens is that the first record of subreport2 shows no results in subreport1 and the second record of subreport2 shows results that belong to the previous record. This how it shows in the ReportViewer. A real print however shows a different result. The first record of subreport2 shows the last record and the second record and further each shows results that belong to the previous record.
I've tried lots of things so far but I can't find a solution.
I hope you understand my explanation and can you offer me some help with this.
Thanks.
Geert
| Me.ReportViewer1.report = new ReferenceReport.Report1 |
| gridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; |
| gridView1.MasterGridViewTemplate.BestFitColumns(); |
1. We need to show the filtered time in report header.
A textbox added to the position, and assigned to the time string, but empty showed after generation.
2. We need to show empty table when the report query no record, but when i set the datasource to empty IEnumerable<BusinessObject> or null, such error appear as following:
|
|