Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-TableButtonCSV

Aliases: New-HTMLTableButtonCSV
Namespace PSWriteHTML
Aliases
New-HTMLTableButtonCSV

Creates a new table button for exporting data to CSV with customizable options.

Remarks

This function creates a new table button for exporting data to CSV with customizable options. It allows users to specify the button title, file name, and other settings for CSV export.

Examples

Authored help example

EXAMPLE 1


New-TableButtonCSV -Title "Export to CSV" -FileName "data" -FieldSeparator "," -FieldBoundary "'"
        

Description ----------- Creates a new table button with the title "Export to CSV", exports data to a CSV file named "data.csv" with comma as the field separator and single quote as the field boundary.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-TableButtonCSV [-ButtonName <String>] [-DisableBOM] [-Extension <String>] [-FieldBoundary <String>] [-FieldSeparator <String>] [-FileName <String>] [-Title <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ButtonName String optionalposition: 1pipeline: False
The text to be displayed on the button. Default value is 'CSV'.
DisableBOM SwitchParameter optionalposition: namedpipeline: False
Switch to disable Byte Order Mark (BOM) in the exported CSV file.
Extension String optionalposition: 2pipeline: False
The file extension for the exported CSV file. Default value is '.csv'.
FieldBoundary String optionalposition: 5pipeline: False
The character used to enclose fields in the CSV file. Default value is '"'.
FieldSeparator String optionalposition: 4pipeline: False
The separator character for fields in the CSV file. Default value is ';'.
FileName String optionalposition: 3pipeline: False
The name of the exported CSV file.
Title String optionalposition: 0pipeline: False
The title to be displayed when hovering over the button.