在你7楼Demo的基础上设置 ReportFooter1.Height = 0,并将以下代码覆盖报表的去全部后台代码:
- Imports GrapeCity.ActiveReports
- Imports GrapeCity.ActiveReports.Document
- Public Class f105整合性チェックリスト
- Dim RowNo As Integer = 1
- Dim NoDataRowNo As Integer = -1
- Private Sub Detail1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Detail1.Format
- If ((RowNo Mod 15) = 0) Then
- TextBox1.Border.BottomColor = Color.Black
- TextBox1.Border.BottomStyle = GrapeCity.ActiveReports.BorderLineStyle.Solid
- Else
- TextBox1.Border.BottomStyle = GrapeCity.ActiveReports.BorderLineStyle.None
- End If
- RowNo = RowNo + 1
- If NoDataRowNo > -1 Then
- For Each item As GrapeCity.ActiveReports.SectionReportModel.ARControl In Me.Detail1.Controls
- If TypeOf item Is GrapeCity.ActiveReports.SectionReportModel.TextBox Then
- TryCast(item, GrapeCity.ActiveReports.SectionReportModel.TextBox).Value = ""
- End If
- Next
- End If
- End Sub
- Private Sub f105整合性チェックリスト_FetchData(sender As Object, eArgs As GrapeCity.ActiveReports.SectionReport.FetchEventArgs) Handles Me.FetchData
- If NoDataRowNo = -1 AndAlso eArgs.EOF = True Then
- NoDataRowNo = 0
- eArgs.EOF = False
- End If
- If NoDataRowNo > -1 Then
- If NoDataRowNo < 15 Then
- NoDataRowNo = NoDataRowNo + 1
- eArgs.EOF = False
- Else
- eArgs.EOF = True
- End If
- End If
- End Sub
- End Class
复制代码
|