Dim Book As New XLS.Book(file)
Dim Sheet As XLS.Sheet = Book.Sheets(0)
Dim i As Integer = Sheet.Rows.Count
For m As Integer = 5 To i
Dim s As String = Sheet(m, 4).Value
If s.Length > 10 Then
Dim Values() As String
Values = s.split(",")
For k As Integer = 11 To Values.Length + 10
Sheet(m, k).Value = Values(k - 11)
Next
Sheet(m, 4).Value = "见附件管号一览表"
End If
Next
无论放在生成报表还是放在报表事件的AfterBuild里面都没效果