mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Added =$true to Parameters to support downlevel versions
This commit is contained in:
@@ -2,7 +2,7 @@ Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
|
||||
|
||||
function Import-Excel {
|
||||
param(
|
||||
[Parameter(ValueFromPipelineByPropertyName)]
|
||||
[Parameter(ValueFromPipelineByPropertyName=$true)]
|
||||
$FullName,
|
||||
$Sheet=1,
|
||||
[string[]]$Header
|
||||
@@ -97,9 +97,9 @@ function Export-Excel {
|
||||
ps | Export-Excel .\test.xlsx -WorkSheetname Processes -ChartType PieExploded3D -IncludePivotChart -IncludePivotTable -Show -PivotRows Company -PivotData PM
|
||||
#>
|
||||
param(
|
||||
[Parameter(Mandatory)]
|
||||
[Parameter(Mandatory=$true)]
|
||||
$Path,
|
||||
[Parameter(ValueFromPipeline)]
|
||||
[Parameter(ValueFromPipeline=$true)]
|
||||
$TargetData,
|
||||
[string]$WorkSheetname="Sheet1",
|
||||
[string]$Title,
|
||||
|
||||
Reference in New Issue
Block a user