将spread中的数据导出到excel表格中后,excel表格的列怎样设为数值型。现在已经做了以下处理但是导出的excel表格中的格式是自定义,不是数值型,不知道为什么,求大神帮忙
With excelSpread.Sheets(0)
Dim len = Me.m_strDataFields.Length
Dim numCell As New FarPoint.Win.Spread.CellType.NumberCellType()
numCell.DecimalPlaces = 0
For i As Integer = 15 To len - 1
If (i <> Me.m_strDataFields.Length - 9) Then
.Columns(i).CellType = numCell
End If
Next i
End With |
|