mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-09 12:03:21 +00:00
Added missing Stream Close and Alias
This commit is contained in:
@@ -328,6 +328,7 @@ function ConvertFrom-ExcelSheet {
|
||||
[CmdletBinding()]
|
||||
param
|
||||
(
|
||||
[Alias("FullName")]
|
||||
[Parameter(Mandatory = $true)]
|
||||
[String]
|
||||
$Path,
|
||||
@@ -363,7 +364,9 @@ function ConvertFrom-ExcelSheet {
|
||||
|
||||
Import-Excel $Path -Sheet $($sheet.Name) | Export-Csv @params -Encoding $Encoding
|
||||
}
|
||||
|
||||
|
||||
$stream.Close()
|
||||
$stream.Dispose()
|
||||
$xl.Dispose()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user