mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-12 06:13:26 +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 {
|
function Import-Excel {
|
||||||
param(
|
param(
|
||||||
[Parameter(ValueFromPipelineByPropertyName)]
|
[Parameter(ValueFromPipelineByPropertyName=$true)]
|
||||||
$FullName,
|
$FullName,
|
||||||
$Sheet=1,
|
$Sheet=1,
|
||||||
[string[]]$Header
|
[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
|
ps | Export-Excel .\test.xlsx -WorkSheetname Processes -ChartType PieExploded3D -IncludePivotChart -IncludePivotTable -Show -PivotRows Company -PivotData PM
|
||||||
#>
|
#>
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory=$true)]
|
||||||
$Path,
|
$Path,
|
||||||
[Parameter(ValueFromPipeline)]
|
[Parameter(ValueFromPipeline=$true)]
|
||||||
$TargetData,
|
$TargetData,
|
||||||
[string]$WorkSheetname="Sheet1",
|
[string]$WorkSheetname="Sheet1",
|
||||||
[string]$Title,
|
[string]$Title,
|
||||||
|
|||||||
Reference in New Issue
Block a user