Skip to content
New issue

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

Using xlsx style to export files, the password protection does not take effect #190

Open
luokaixi opened this issue Dec 13, 2024 · 0 comments

Comments

@luokaixi
Copy link

ws['!protect'] = {
  password: '1234as',
  selectLockedCells: true,
  selectUnlockedCells: true
}
XLSX.utils.book_append_sheet(wb, ws, item.sheetName)
const wbOut = XLSXS.write(wb, {
  bookType: 'xlsx',
  type: 'binary'
})

When I export an Excel file using xlsx style and open it, the password I set does not take effect,Could you please take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant