Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:Book.Save 是不是有点问题?

1楼
mr725 发表于:2012/1/16 20:51:00

新建立一个空的工作簿,放在任意一个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 后又会不断增加行和列数了···

2楼
狐狸爸爸 发表于:2012/1/17 8:38:00
呵呵,收到,我检查一下,可能是控件的bug.
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03320 s, 2 queries.