-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds NoPageLayoutStyle to HTML output options
Fixes #3
- Loading branch information
1 parent
db29320
commit ed0abb9
Showing
6 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Import-Module PScribo -Force; | ||
|
||
$example30 = Document -Name 'PScribo Example 30' { | ||
<# | ||
When sending PScribo output as a HTML email body, Outlook does not necessarily | ||
display the page styling/look-and-feel correctly. This can be suppressed by | ||
passing an -Options hashtable with the 'NoPageLayoutStyle' key to the | ||
Export-Document function. | ||
#> | ||
GlobalOption -Margin 18 | ||
Style -Name StoppedService -Color White -BackgroundColor Firebrick | ||
|
||
$services = Get-Service | ||
$services | Where-Object { $_.Status -ne 'Running' } | Set-Style -Style 'StoppedService' | ||
Table -InputObject $services -Columns Name,DisplayName,Status -Headers 'Name','Display Name','State' | ||
} | ||
$example30 | Export-Document -Format Html -Path ~\Desktop -Options @{ NoPageLayoutStyle = $true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters