HotXLS Docs

IncludeFields property

Specifies an explicit list of dataset field names to include in the Excel export process, ignoring all other fields

Syntax

property IncludeFields: TStrings read FIncludeFields write SetIncludeFields;

Example

This example includes only specific fields for export

DataToXLS.IncludeFields.Add('UserName');
DataToXLS.IncludeFields.Add('Email');