mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-17 16:53:46 +00:00
updated to image example
This commit is contained in:
@@ -6,14 +6,18 @@ $xlFileName = "C:\Temp\testPNG.xlsx"
|
||||
|
||||
rm C:\Temp\testPNG.xlsx -ErrorAction Ignore
|
||||
|
||||
@"
|
||||
$range = @"
|
||||
Region,Item,Cost
|
||||
North,Pear,1
|
||||
South,Apple,2
|
||||
East,Grapes,3
|
||||
West,Berry,4
|
||||
North,Pear,1
|
||||
South,Apple,2
|
||||
East,Grapes,3
|
||||
West,Berry,4
|
||||
"@ | ConvertFrom-Csv |
|
||||
Export-Excel $xlFileName `
|
||||
Export-Excel $xlFileName -ReturnRange `
|
||||
-ConditionalText (New-ConditionalText Apple), (New-ConditionalText Berry -ConditionalTextColor White -BackgroundColor Purple)
|
||||
|
||||
Convert-XlRangeToImage -Path $xlFileName -workSheetname sheet1 -range A1:C5 -Show
|
||||
Convert-XlRangeToImage -Path $xlFileName -workSheetname sheet1 -range $range -Show
|
||||
|
||||
Reference in New Issue
Block a user