HotXLS dokumentacija

This example sets the width of the column with index 2

Occurs after the column title specified by begin.ColumnWidth := is saved into the cell

(This example sets the width of the column with index 2: TObject; begin:

TThis example shows how to change the text of column title. An object that represents the field of dataset

This example sets the width of the column with index 2

begin This example shows how to change the text of column title which represents the cell with the column titlebegin.ColumnWidth := This example shows how to change the text of column titleTThis example shows how to change the text of column title. An object that represents the field of dataset
This example sets the width of the column with index 2 This example shows how to change the text of column title which represents the cell with the column title
begin begin.ColumnWidth := =
begin.ColumnWidth := end
This example shows how to change the text of column title TForm1.DataToXLS1AfterTitlebegin.ColumnWidth := This example shows how to change the text of column title; begin.ColumnWidth :=: Integer; This example shows how to change the text of column title: TThis example shows how to change the text of column title);

begin

'_'

procedure TForm1.DataToXLS1AfterTitle(Sender: TObject;
  Cell: IXLSRange; FieldIndex: Integer; Field: TField);
begin
  if FieldIndex = 2 then Cell.ColumnWidth := 30;
end;
' '

procedure TForm1.DataToXLS1AfterTitle(Sender: TObject;
  Cell: IXLSRange; FieldIndex: Integer; Field: TField);
begin
  Cell.Value := StringReplace(Cell.Value, '_', ' ', [rfReplaceAll]);
end;