HotXLS Docs

LastSavedBy proprietà

Gets o sets the saved-by user name stored in the classic XLS WRITEACCESS record. Read/write WideString

Syntax

proprietà LastSavedBy: WideString;

Description

The proprietà applies to classic XLS output e maps to the BIFF WRITEACCESS record. New workbooks return HotXLS until a caller assigns a value. Workbooks opened from an existing XLS file preserve the original WRITEACCESS bytes until this proprietà is assigned
Assigned values are stored as UTF-16 e truncated to 54 characters so the fixed-width record body remains valid UserName is an alias for the same stored value

Example

This example stores an explicit audit user name before saving the workbook

Workbook.LastSavedBy := 'Alice';
Workbook.SaveAs('C:\audit.xls');

Vedere also