Documentazione HotXLS

Protection permission properties

Queste proprietà Boolean controllano le autorizzazioni per singola azione salvate nel record BIFF8 SheetProtect per un foglio di lavoro XLS classico protetto. Impostale prima di salvare la cartella di lavoro; chiama Protect per abilitare la protezione del foglio di lavoro

Sintassi

property AllowEditObjects: Boolean;
property AllowEditScenarios: Boolean;
property AllowFormatCells: Boolean;
property AllowFormatColumns: Boolean;
property AllowFormatRows: Boolean;
property AllowInsertColumns: Boolean;
property AllowInsertRows: Boolean;
property AllowInsertHyperlinks: Boolean;
property AllowDeleteColumns: Boolean;
property AllowDeleteRows: Boolean;
property AllowSelectLockedCells: Boolean;
property AllowSort: Boolean;
property AllowAutoFilter: Boolean;
property AllowPivotTables: Boolean;
property AllowSelectUnlockedCells: Boolean;

Default values

AllowSelectLockedCells e AllowSelectUnlockedCells hanno come valore predefinito True Le altre proprietà di autorizzazione hanno come valore predefinito False

Esempio

Sheet.AllowDeleteRows := True;
Sheet.AllowInsertRows := True;
Sheet.AllowAutoFilter := True;
Sheet.Protect('mypass123');

Vedere also