From b53a73d524d28654946d0da3bd5c230ee948af43 Mon Sep 17 00:00:00 2001 From: Doug Finke Date: Mon, 13 Apr 2015 09:41:04 -0400 Subject: [PATCH] Updated sample --- TryEPPlus.ps1 | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/TryEPPlus.ps1 b/TryEPPlus.ps1 index 60e3707..8ffae18 100644 --- a/TryEPPlus.ps1 +++ b/TryEPPlus.ps1 @@ -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 \ No newline at end of file +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 \ No newline at end of file