指定 an explicit list of dataset field names to include in the Excel export process, ignoring all other fields
語法
property IncludeFields: TStrings read FIncludeFields write SetIncludeFields;
範例
This example includes only specific fields for export
DataToXLS.IncludeFields.Add('UserName');
DataToXLS.IncludeFields.Add('Email');