您的位置:首页 > 其它

fsharp处理Excel数据

2016-06-04 00:25 330 查看
1.依赖:Microsoft.Office.Interop.Excel

.fsx

// Reference the Excel interop assembly
#r "Microsoft.Office.Interop.Excel"
open Microsoft.Office.Interop

// Run Excel as a visible application
let app = new ApplicationClass(Visible = true)

// Open a exiting file
let xlWorkBook = xlApp.Workbooks.Open(@"C:\Users\Ray\Desktop\0db-1m\test.xlsx")
et worksheet= xlWorkBook.Worksheets.["Sheet1"] :?>Excel.Worksheet
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  fsharp excel