mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Fix null header
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
RootModule = 'ImportExcel.psm1'
|
||||
|
||||
# Version number of this module.
|
||||
ModuleVersion = '1.2'
|
||||
ModuleVersion = '1.3'
|
||||
|
||||
# ID used to uniquely identify this module
|
||||
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
|
||||
|
||||
@@ -32,8 +32,10 @@ function Import-Excel {
|
||||
foreach ($Row in 2..$Rows) {
|
||||
$h=[Ordered]@{}
|
||||
foreach ($Column in 0..($Columns-1)) {
|
||||
$Name = $Header[$Column]
|
||||
$h.$Name = $worksheet.Cells[$Row,($Column+1)].Text
|
||||
if($Header[$Column].Length -gt 0) {
|
||||
$Name = $Header[$Column]
|
||||
$h.$Name = $worksheet.Cells[$Row,($Column+1)].Text
|
||||
}
|
||||
}
|
||||
[PSCustomObject]$h
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ $p = @{
|
||||
NuGetApiKey = $NuGetApiKey
|
||||
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
|
||||
Tag = "Excel","EPPlus","Export","Import"
|
||||
ReleaseNote = "Rename parameter BoldFirstRow to BoldTopRow"
|
||||
ReleaseNote = "Fixed null header"
|
||||
ProjectUri = "https://github.com/dfinke/ImportExcel"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user