系统相关
首页 > 系统相关> > power shell通过epplus操作excel

power shell通过epplus操作excel

作者:互联网

[void][Reflection.assembly]::LoadFrom("C:\ww\EPPlus.dll")
[void][Reflection.assembly]::LoadFrom("C:\ww\Microsoft.IO.RecyclableMemoryStream.dll")


$ex = New-Object OfficeOpenXml.ExcelPackage("C:\ww\x.xlsx")

#$ex.SaveAs("C:\ww\x1.xlsx")
[System.Windows.Forms.MessageBox]::Show(($ex.Workbook.Worksheets[3].Cells[4,4]).ToString())
[System.Windows.Forms.MessageBox]::Show($ex.Workbook.Worksheets[3].Name)

  

标签:Forms,MessageBox,shell,LoadFrom,power,epplus,System,ww,ex
来源: https://www.cnblogs.com/coolyylu/p/16253567.html