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'
|
RootModule = 'ImportExcel.psm1'
|
||||||
|
|
||||||
# Version number of this module.
|
# Version number of this module.
|
||||||
ModuleVersion = '1.2'
|
ModuleVersion = '1.3'
|
||||||
|
|
||||||
# ID used to uniquely identify this module
|
# ID used to uniquely identify this module
|
||||||
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
|
GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
|
||||||
|
|||||||
@@ -32,8 +32,10 @@ function Import-Excel {
|
|||||||
foreach ($Row in 2..$Rows) {
|
foreach ($Row in 2..$Rows) {
|
||||||
$h=[Ordered]@{}
|
$h=[Ordered]@{}
|
||||||
foreach ($Column in 0..($Columns-1)) {
|
foreach ($Column in 0..($Columns-1)) {
|
||||||
$Name = $Header[$Column]
|
if($Header[$Column].Length -gt 0) {
|
||||||
$h.$Name = $worksheet.Cells[$Row,($Column+1)].Text
|
$Name = $Header[$Column]
|
||||||
|
$h.$Name = $worksheet.Cells[$Row,($Column+1)].Text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
[PSCustomObject]$h
|
[PSCustomObject]$h
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ $p = @{
|
|||||||
NuGetApiKey = $NuGetApiKey
|
NuGetApiKey = $NuGetApiKey
|
||||||
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
|
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
|
||||||
Tag = "Excel","EPPlus","Export","Import"
|
Tag = "Excel","EPPlus","Export","Import"
|
||||||
ReleaseNote = "Rename parameter BoldFirstRow to BoldTopRow"
|
ReleaseNote = "Fixed null header"
|
||||||
ProjectUri = "https://github.com/dfinke/ImportExcel"
|
ProjectUri = "https://github.com/dfinke/ImportExcel"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ Know Issues
|
|||||||
|
|
||||||
What's new
|
What's new
|
||||||
-
|
-
|
||||||
|
#### 5/25/2015
|
||||||
|
* Fixed null header problem
|
||||||
|
|
||||||
#### 5/17/2015
|
#### 5/17/2015
|
||||||
* Added three parameters:
|
* Added three parameters:
|
||||||
* FreezeTopRow - Freezes the first row of the data
|
* FreezeTopRow - Freezes the first row of the data
|
||||||
|
|||||||
Reference in New Issue
Block a user