# Example 44

Example 44 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-TableJavaScript`

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

$Table1 = Get-Process | Select-Object -First 5 -ExcludeProperty Modules, Threads
$Table2 = Get-Process | Select-Object -First 5 -ExcludeProperty Modules, Threads
<#
$Table1 = @(
    Get-Process
    Get-Process
    Get-Process
    Get-Process
    Get-Process
    Get-Process
    Get-Process
)
$Table2 = @(
    Get-Process
    Get-Process
    Get-Process
    Get-Process
    Get-Process
    Get-Process
    Get-Process
)
#>
$Table3 = [ordered] @{
    Special = 'This is a test'
    Test    = 'This a test 2'
}

New-HTML -TitleText "Server Based Solution" -FilePath "$PSScriptRoot\Example44.html" {
    New-HTMLTableOption -DataStore JavaScript
    New-HTMLSectionStyle -BorderRadius 0px -RemoveShadow -HeaderBackGroundColor Grey
    New-HTMLTabStyle -BorderRadius 0px -BackgroundColorActive Grey

    New-HTMLTab -Name 'Tab 1' -IconBrands amazon {
        New-HTMLTable -DataTableID 'TableContent0' -DataTable $Table3 {
            New-TableHeader -Color Red -Title 'This shows Ordered Dictionary'
        }

        New-HTMLSection -HeaderText "Server Based Solution - Table 1" -Content {
            New-HTMLTable -DataTable $Table1 -Filtering {
                New-TableHeader -Color Red -Title 'This shows standard table'
            } -DataTableID 'TableContent1'
        }

        New-HTMLSection -HeaderText "Server Based Solution - Table 2" -Content {
            New-HTMLTable -DataTable $Table2 -Filtering {

            } -DataTableID 'TableContent2' -PagingOptions @(5, 10, 15)
        }

    }
    New-HTMLTab -Name 'Tab 2' -IconBrands ubuntu {
        New-HTMLSection -HeaderText "Server Based Solution - Table 3" -Content {
            New-HTMLTable -DataTable $Table1 -Filtering {

            } -DataTableID 'TableContent3'
        }
        New-HTMLSection -HeaderText "Server Based Solution - Table 4" -Content {
            New-HTMLTable -DataTable $Table2 -Filtering {

            } -DataTableID 'TableContent4' -PagingOptions @(5, 10, 15)
        }
    }
    New-HTMLTab -Name 'Tab 3' -IconBrands app-store {
        New-HTMLSection -HeaderText "Server Based Solution - Table 5" -Content {
            New-HTMLTable -DataTable $Table1 -Filtering {

            } -DataTableID 'TableContent5'
        }
        New-HTMLSection -HeaderText "Server Based Solution - Table 6" -Content {
            New-HTMLTable -DataTable $Table2 -Filtering {

            } -DataTableID 'TableContent6' -PagingOptions @(5, 10, 15)
        }
    }
    New-HTMLTab -Name 'Tab 4' -IconBrands airbnb {
        New-HTMLSection -HeaderText "Server Based Solution - Table 7" -Content {
            New-HTMLTable -DataTable $Table1 -Filtering {

            } -DataTableID 'TableContent7'
        }
        New-HTMLSection -HeaderText "Server Based Solution - Table 8" -Content {
            New-HTMLTable -DataTable $Table2 -Filtering {

            } -DataTableID 'TableContent8' -PagingOptions @(5, 10, 15)
        }
    }
} -Online -ShowHTML
```

<!-- PowerForge markdown artifact sha256:4EE4E00E979E430C0187CDE36F32E9C964FE172FC86F714A761A2AA91B026E35 -->
