1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26:
| procedure TForm1.Excel_Layout2(Grid: TControl); var sg: TStringGrid; dbg: TDBGrid; begin
if rre < 26 then excel.range['A1', chr(rre+64)+'1'].select else excel.range['A1', 'Z1'].select; excel.selection.Font.bold := true; excel.selection.Font.color := clblack; excel.selection.interior.color := clLtGray;
if rre < 26 then excel.range['A1', chr(rre+64)+ '1'+ inttostr(rce)].select else excel.range['A1', 'Z1'].select; if (grid is tStringGrid) then begin sg := (grid as TStringGrid); excel.selection.font.size := sg.Canvas.Font.Size; end; if (grid is TDBGrid) then begin dbg := (grid as TDBGrid); excel.selection.font.size := dbg.Canvas.Font.Size; end; excel.cells[rce+5,2] := fname; excel.cells[rce+6,2] := 'Erstellt: ' + datetostr(date)+ ' um: ' + timetostr(time); end; |