Code: Select all
// XLS is an XLSReadWriteII5 component
XLS.Add;
// Name it
XLS[XLS.Count - 1].Name := 'NewName';
Code: Select all
var
NumSheets: Integer;
begin
NumSheets := XLS.Count;
end;
Code: Select all
// XLS is an XLSReadWriteII5 component
XLS.Add;
// Name it
XLS[XLS.Count - 1].Name := 'NewName';
Code: Select all
var
NumSheets: Integer;
begin
NumSheets := XLS.Count;
end;
Code: Select all
XLS[0].WorkspaceOptions := [woFitToPage];
Code: Select all
var
Col1, Col2, Row1, Row2: Integer;
begin
AreaStrToColRow('$A$1:$IV$10', Col1, Col2, Row1, Row2);
Sheet.PrintSettings.PrintTitles(Col1, Col2, Row1, Row2);
end;
Code: Select all
XLS[0].Cells[2,3].FillPatternForeColorRGB := $AFAFAF;
Code: Select all
XLS.CmdFormat.BeginEdit[XLS[0]);
XLS.CmdFormat.Border.Preset(cbspOutline);
Code: Select all
CmdFormat
Code: Select all
BorderLeftColor