我这里还是不行,我用的是vb.net。spread12
代码如下,请您帮忙看看
1,Spread声明代码:
Me.FpSpread1 = New FarPoint.Win.Spread.FpSpread(FarPoint.Win.Spread.LegacyBehaviors.Style, CType(resources.GetObject("resource1"),System.IO.MemoryStream))
Me.FpSpread1_Sheet1 = Me.FpSpread1.GetSheet(0)
2,load方法里代码
Me.FpSpread1.ActiveSheet.RowCount = 3
Me.FpSpread1.ActiveSheet.DefaultStyle.Locked = False
Me.FpSpread1.ActiveSheet.Protect = True
Debug.WriteLine("1:" & Me.FpSpread1.ActiveSheet.Cells(0, 0).Locked)
Me.FpSpread1.ActiveSheet.RowCount = 0
Me.FpSpread1.ActiveSheet.RowCount = 3
Debug.WriteLine("2:" & Me.FpSpread1.ActiveSheet.Cells(0, 0).Locked)
3,运行结果:
1:True
2:True |