mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-06 10:33:19 +00:00
Updated sample
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user