我使用这样的代码,在IE6中也是可以正常切换各个Sheet页面的,你看一下
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
FpSpread1.Sheets.Clear()
Dim db1 As New DataSet
db1.ReadXml(Server.MapPath("Data.xml"))
FpSpread1.Sheets.Count = db1.Tables.Count
For numn As Integer = 0 To db1.Tables.Count - 1
Dim model As FarPoint.Web.Spread.Model.DefaultSheetDataModel
model = New FarPoint.Web.Spread.Model.DefaultSheetDataModel(db1.Tables("Table" & (numn + 1) & ""))
FpSpread1.Sheets(numn).DataModel = model
FpSpread1.Sheets(numn).SheetName = "-" & "天" & (numn + 1) & "" Next
End Sub
我这种方法是根据数据源中Table的数量直接设置Spread的Sheet数量:
FpSpread1.Sheets.Count = db1.Tables.Count |