如何解决如何在ASP.NET Web API核心中使用EEplus从Excel Sheet中读取文件.txt,.json等
我有一个excel文件(.xlsm格式)。在sheet2中,我使用宏添加了.txt和.json文件。 我正在尝试使用EEPLUS从asp.net核心读取这些文件。
我对此一无所知。 This image show you my files in excel sheet
宏Vba代码可在Excel工作表中添加文件:
Dim selectedFile As String,iLabel_Array() As String,iLabel As String
Dim objInserted As Object
Dim rngSize As Range
Dim selectedFilesCount As Long,i As Long,shpCount As Long
'Get the file name
selectedFile = TextBox1.Text
' add files
sh2.OLEObjects.Add( _
fileName:=selectedFile,_
Link:=False,_
DisplayAsIcon:=True,_
iconfilename:="explorer.exe",_
iconindex:=0,_
IconLabel:=fileName) _
.Name = fileName
' assign location
Set objInserted = sh2.Shapes(fileName)
Set rngSize = sh2.Range(Cells(rowNumber,3).Address,Cells(rowNumber,3).Address)
With objInserted
.LockAspectRatio = False
.height = rngSize.height
.width = rngSize.width
.Top = rngSize.Top
.Left = rngSize.Left
End With
如何从asp.net Web API核心获取此文件?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。