mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 05:13:49 +00:00
Fixed #115
This commit is contained in:
@@ -17,6 +17,7 @@ Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
|
|||||||
. $PSScriptRoot\Import-Html.ps1
|
. $PSScriptRoot\Import-Html.ps1
|
||||||
. $PSScriptRoot\Get-Range.ps1
|
. $PSScriptRoot\Get-Range.ps1
|
||||||
. $PSScriptRoot\TrackingUtils.ps1
|
. $PSScriptRoot\TrackingUtils.ps1
|
||||||
|
. $PSScriptRoot\Copy-ExcelWorkSheet.ps1
|
||||||
|
|
||||||
if($Host.Version.Major -ge 5) {
|
if($Host.Version.Major -ge 5) {
|
||||||
. $PSScriptRoot\plot.ps1
|
. $PSScriptRoot\plot.ps1
|
||||||
@@ -76,11 +77,11 @@ function Import-Excel {
|
|||||||
} else {
|
} else {
|
||||||
if(!$Header) {
|
if(!$Header) {
|
||||||
$Header = foreach ($Column in 1..$Columns) {
|
$Header = foreach ($Column in 1..$Columns) {
|
||||||
$worksheet.Cells[$HeaderRow,$Column].Text
|
$worksheet.Cells[$HeaderRow,$Column].Value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($Rows -eq 1) {
|
if($Rows -eq 1) {
|
||||||
$Header | ForEach {$h=[Ordered]@{}} {$h.$_=''} {[PSCustomObject]$h}
|
$Header | ForEach {$h=[Ordered]@{}} {$h.$_=''} {[PSCustomObject]$h}
|
||||||
} else {
|
} else {
|
||||||
foreach ($Row in ($HeaderRow+1)..$Rows) {
|
foreach ($Row in ($HeaderRow+1)..$Rows) {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ $targetFiles = echo `
|
|||||||
*.psm1 `
|
*.psm1 `
|
||||||
*.psd1 `
|
*.psd1 `
|
||||||
*.dll `
|
*.dll `
|
||||||
|
New-ConditionalText.ps1 `
|
||||||
New-ConditionalFormattingIconSet.ps1 `
|
New-ConditionalFormattingIconSet.ps1 `
|
||||||
Export-Excel.ps1 `
|
Export-Excel.ps1 `
|
||||||
Export-ExcelSheet.ps1 `
|
Export-ExcelSheet.ps1 `
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfi
|
|||||||
|
|
||||||
# What's new
|
# What's new
|
||||||
|
|
||||||
|
#### 8/12/2016
|
||||||
|
[Fixed](https://github.com/dfinke/ImportExcel/issues/115) reading the headers from cells, moved from using `Text` property to `Value` property.
|
||||||
|
|
||||||
#### 7/30/2016
|
#### 7/30/2016
|
||||||
* Added `Copy-ExcelWorksheet`. Let's you copy a work sheet from one Excel workbook to another.
|
* Added `Copy-ExcelWorksheet`. Let's you copy a work sheet from one Excel workbook to another.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user