Hallo,
kann mir jemand weiterhelfen?
Ich habe eine Funktion die mir den Inhalt eines StringGrid in eine Excel – Datei speichert.
Nur ist bei der original Excel-Datei die Erste Zeile Fett und Fixiert.
Wenn ich nun die xls neu speichere ist der Uhrzustand zerstört.
Kennt jemand eine Möglichkeit für diese Events?
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| try XLApp.Visible := False; XLApp.Workbooks.Add(xlWBatWorkSheet); Sheet := XLApp.Workbooks[1].WorkSheets[1]; Sheet.Name := ASheetName; Sheet.Range[RefToCell(1, 1), RefToCell(AGrid.RowCount, AGrid.ColCount)].Value := Data; try XLApp.Workbooks[1].SaveAs(AFileName); Result := True; except |
Gruß