导出EXCEL时,数据总是用科学记数法显示,怎么解决?
excel有什么方法能让excel变成只读??

解决方案 »

  1.   

    刚好我碰到过!http://www.aspxboy.com/private/showthread.asp?threadid=341
      

  2.   

    1)
      只要把对应范围的格式设为文字列就可以了。
      xlWorksheet.UsedRange.NumberFormatLocal = "@"  或者在输出的数据前加上单引号,比如
      '11121212
    2)
      使用File.SetAttributes 方法
      Dim path As String = "c:\temp\MyTest.xls"
      File.SetAttributes(path, FileAttributes.ReadOnly)