Updated sample

This commit is contained in:
Doug Finke
2015-04-13 09:41:04 -04:00
parent 8385b855ec
commit b53a73d524

View File

@@ -1,7 +1,17 @@
#cls
$xlFile = ".\testExport.xlsx"
import-module
#Import-Excel .\Book1.xlsx |ft
#Import-Excel .\TestRead.xlsx
#Import-Excel .\testImport.xlsx 1 (echo a b c d) | Out-String
#Import-Excel .\testImport.xlsx 2 (echo e f g h) | Out-String
Remove-Item -ErrorAction Ignore $xlFile
$ExportOptions = @{
Path = $xlFile
Show=$true
IncludePivotTable=$true
IncludePivotChart=$true
PivotRows="Company"
PivotData="PM"
ChartType="PieExploded3D"
}
Get-Process |
Select Company, Name, Handles, PM |
Export-Excel @ExportOptions