Call .NET for temp files

This commit is contained in:
dfinke
2016-02-24 11:06:48 -05:00
parent ca2b4c790f
commit 2ff98d1de5
4 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ function DoChart {
-NoLegend:$NoLegend -ShowCategory:$ShowCategory -ShowPercent:$ShowPercent
}
$xlFile = (New-TemporaryFile).fullname -replace "tmp","xlsx"
$xlFile = [System.IO.Path]::GetTempFileName() -replace "tmp","xlsx"
$targetData | Export-Excel $xlFile -ExcelChartDefinition $chart -Show -AutoSize
}