Class SpreadsheetLocker

Class SpreadsheetLocker

로크 스프레드시트 파일
public class SpreadsheetLocker

Inheritance

object SpreadsheetLocker

상속 회원들

Examples

[C#]
private class MyLockerSaveOptions : LockerSaveOptions
{
    public override ProtectionSettings GetPasswordOfWorksheetProtection(SplitPartInfo info)
    {
        if (info.SheetName == "ToProtect")
        {
            ProtectionSettings ps = new ProtectionSettings();
            ps.Password = "123456";
            ps.ProtectionType = ProtectionType.All;
            return ps;
        }
        return null;
    }
}
SpreadsheetLocker processor = new SpreadsheetLocker();
LoadOptions loadOptions = new LoadOptions();
loadOptions.InputFile = "Template.xlsx";
MyLockerSaveOptions saveOptions = new MyLockerSaveOptions();
saveOptions.Password = "password to lock file";
saveOptions.OutputFile = "res_locked.xlsx";
SpreadsheetLocker.Process(loadOptions, saveOptions);

Methods

Process(LoadOptions, LockerSave옵션)

.

public static void Process(LoadOptions loadOptions, LockerSaveOptions saveOptions)

Parameters

Remarks

잠금 후 다시 저장된 파일은 항상 원본 파일과 동일한 형식으로 제공됩니다.

이름 공간 : Sheetize 의회 회의 : Sheetize.dll

 한국어