We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
I want to revent a sheet from being modified.
Steps to reproduce the issue:
Set column format
Set row format
Select locked cells
Select unlocked cells
can modify Modify cell width,but can not modify cell value
Describe the results you received:
protect all, I can not modify modify cell width
Describe the results you expected:
Output of go version:
go version
go version go1.12.6 darwin/amd64
Excelize version or commit ID:
9279c86d85ab0077f3696b8ec4cfb49ad8222530
Environment details (OS, Microsoft Excel™ version, physical, etc.):
mac: Darwin localhost 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
excel: v16.16.12(190715)
func (f *File) GetProtect(sheet string) (*FormatSheetProtection, error) { xlsx, err := f.workSheetReader(sheet) if err != nil { return nil, err } var ret FormatSheetProtection ret.AutoFilter = xlsx.SheetProtection.AutoFilter ret.DeleteColumns = xlsx.SheetProtection.DeleteColumns ret.DeleteRows = xlsx.SheetProtection.DeleteRows ret.FormatCells = xlsx.SheetProtection.FormatCells ret.FormatColumns = xlsx.SheetProtection.FormatColumns ret.FormatRows = xlsx.SheetProtection.FormatRows ret.InsertColumns = xlsx.SheetProtection.InsertColumns ret.InsertHyperlinks = xlsx.SheetProtection.InsertHyperlinks ret.InsertRows = xlsx.SheetProtection.InsertRows ret.EditObjects = xlsx.SheetProtection.Objects ret.PivotTables = xlsx.SheetProtection.PivotTables ret.EditScenarios = xlsx.SheetProtection.Scenarios ret.SelectLockedCells = xlsx.SheetProtection.SelectLockedCells ret.SelectUnlockedCells = xlsx.SheetProtection.SelectUnlockedCells ret.Sort = xlsx.SheetProtection.Sort return &ret, err }
The text was updated successfully, but these errors were encountered:
Bugfix qax-os#454
497ad8f
Merge pull request #459 from WuXu1995/master
3599b24
Bugfix #454
Hi @exfly, this issue has been fixed. Please try to upgrade the library with the master branch code.
Sorry, something went wrong.
d41713e
Merge pull request qax-os#459 from WuXu1995/master
d8cba68
No branches or pull requests
Description
I want to revent a sheet from being modified.
Steps to reproduce the issue:
Set column format
Set row format
Select locked cells
Select unlocked cells
can modify Modify cell width,but can not modify cell value
Describe the results you received:
protect all, I can not modify modify cell width
Describe the results you expected:
can modify Modify cell width,but can not modify cell value
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
mac:
Darwin localhost 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
excel:
v16.16.12(190715)
The text was updated successfully, but these errors were encountered: