how to set a default values with version 5
Posted: Sun Jun 02, 2013 7:27 am
Hi,
1) I wonder how can be set a default font name/size and cell alignment in entire sheet
this code almost cause 100% cpu usage on my i5 CPU for more than 2 minutes
2) how can be created a file with 6 sheets in Excel 97 format with default settings like point 1)
3) XLS.CmdFormat.BeginEdit (XLS [0]) - value "0" what means? sheet index?
Regards
1) I wonder how can be set a default font name/size and cell alignment in entire sheet
Code: Select all
with XLS.CmdFormat do
begin
Mode := xcfmReplace;
BeginEdit (XLS [0]);
Font.Name := 'MS Sans Serif';
Font.Size := 10;
Alignment.Vertical := cvaCenter;
Apply (0, 0, 255, 65535);
end;
2) how can be created a file with 6 sheets in Excel 97 format with default settings like point 1)
3) XLS.CmdFormat.BeginEdit (XLS [0]) - value "0" what means? sheet index?
Regards