diff --git a/Export-Excel.ps1 b/Export-Excel.ps1 index ccfea2d..9ab02fb 100644 --- a/Export-Excel.ps1 +++ b/Export-Excel.ps1 @@ -200,7 +200,7 @@ Function Export-Excel { foreach($format in $ConditionalFormat ) { $target = "Add$($format.Formatter)" - $rule = ($ws.ConditionalFormatting).$target($format.Address, $format.IconType) + $rule = ($ws.ConditionalFormatting).$target.Invoke($format.Address, $format.IconType) $rule.Reverse = $format.Reverse } diff --git a/ImportExcel.psd1 b/ImportExcel.psd1 index ee3960b..34c62fe 100644 --- a/ImportExcel.psd1 +++ b/ImportExcel.psd1 @@ -4,7 +4,7 @@ RootModule = 'ImportExcel.psm1' # Version number of this module. -ModuleVersion = '1.83' +ModuleVersion = '1.90' # ID used to uniquely identify this module GUID = '60dd4136-feff-401a-ba27-a84458c57ede' diff --git a/PublishToGallery.ps1 b/PublishToGallery.ps1 index 38b0072..c664cc6 100644 --- a/PublishToGallery.ps1 +++ b/PublishToGallery.ps1 @@ -4,7 +4,7 @@ $p = @{ NuGetApiKey = $NuGetApiKey LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt" Tag = "Excel","EPPlus","Export","Import" - ReleaseNote = "For Import-Excel: added -NoHeader parameter and returns .Value" + ReleaseNote = "Fixed v3.0 bug, added -HeaderRow, added Help for Export-Excel" ProjectUri = "https://github.com/dfinke/ImportExcel" } diff --git a/README.md b/README.md index 69afc48..1979a79 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,27 @@ Know Issues What's new - -#### 10/19/2015 +#### 10/20/2015 + +Big bug fix for version 3.0 PowerShell folks! + +This technique fails in 3.0 and works in 4.0 and later. +```powershell +$m="substring" +"hello".$m(2,1) +``` + +Adding `.invoke` works in 3.0 and later. + +```powershell +$m="substring" +"hello".$m.invoke(2,1) +``` + +A ***big thank you*** to [DarkLite1](https://github.com/DarkLite1) for adding the help to Export-Excel. Added `-HeaderRow` parameter. Sometimes the heading does not start in Row 1. + #### 10/16/2015