新建立一个空的工作簿,放在任意一个foxtable文件的目录中,在命令窗口反复执行下面代码:
Dim Book As New XLS.Book(ProjectPath & "book4.xls")
Dim Sheet As XLS.Sheet = Book.Sheets(0)
For i As Integer = 0 To sheet.rows.count
For c As Integer = 0 To sheet.cols.count
Sheet(i, c).Value = Nothing
Next
Next
Book.Save(ProjectPath & "book4.xls")
output.show("这个列数会不断增加,直到255列提示错误: " & sheet.cols.count)
output.show("这个行数也会不断增加: " & sheet.rows.count)
sheet.rows.count 和 sheet.cols.count 后面 -1 就不会增加列数了,但是类似添上 +2-1 后又会不断增加行和列数了···