mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 07:43:23 +00:00
Fixed a poss parameter set issue;
This commit is contained in:
@@ -423,7 +423,7 @@
|
|||||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "")]
|
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "")]
|
||||||
Param(
|
Param(
|
||||||
[Parameter(ParameterSetName = "Default", Position = 0)]
|
[Parameter(ParameterSetName = "Default", Position = 0)]
|
||||||
[Parameter(ParameterSetName = "Table" , Position = 0)]
|
[Parameter(Mandatory = $true, ParameterSetName = "Table" , Position = 0)]
|
||||||
[String]$Path,
|
[String]$Path,
|
||||||
[Parameter(Mandatory = $true, ParameterSetName = "PackageDefault")]
|
[Parameter(Mandatory = $true, ParameterSetName = "PackageDefault")]
|
||||||
[Parameter(Mandatory = $true, ParameterSetName = "PackageTable")]
|
[Parameter(Mandatory = $true, ParameterSetName = "PackageTable")]
|
||||||
@@ -747,11 +747,12 @@
|
|||||||
catch {Write-Warning -Message "Could not insert the '$Name' property at Row $Row, Column $ColumnIndex"}
|
catch {Write-Warning -Message "Could not insert the '$Name' property at Row $Row, Column $ColumnIndex"}
|
||||||
$ColumnIndex += 1
|
$ColumnIndex += 1
|
||||||
}
|
}
|
||||||
|
$ColumnIndex -= 1 # column index will be the last column whether isDataTypeValueType was true or false
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch {throw "Failed exporting data to worksheet '$WorksheetName' to '$Path': $_" }
|
catch {throw "Failed exporting data to worksheet '$WorksheetName' to '$Path': $_" }
|
||||||
$ColumnIndex -= 1 # column index will be the last column whether isDataTypeValueType was true or false
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
end {
|
end {
|
||||||
|
|||||||
Reference in New Issue
Block a user