# Basic With Height

Basic With Height on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example-Diagrams`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

New-HTML -Title 'Shows how to control diagram height' {
    New-HTMLSectionStyle -BorderRadius 0px -HeaderBackGroundColor Grey -RemoveShadow
    New-HTMLSection -Title 'Shows how to fill whole screen with diagram' {
        New-HTMLDiagram -Height 'calc(100vh - 50px)' {
            New-DiagramNode -Label 'Test' -To 'test2' -Shape box -FontColor Red

            $Label = @"
This is Test
This is more test
Ooops
"@
            New-DiagramNode -Id 'test2' -Label $Label -FontMulti html -Shape box -FontAlign left
        }
    }
    #New-HTMLTable -DataTable (Get-Process | Select-Object -First 2)
} -FilePath $PSScriptRoot\Example-BasicWithHeight.html -Online -ShowHTML
```

<!-- PowerForge markdown artifact sha256:80E506DFD2AA13EC1B524D2AB6B4718ACFE5246DEEA7349F230B18E638364FFB -->
