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

[WIP] add DocSecurity type to protectWorkbook. closes #201 #202

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

JanMarvin
Copy link
Collaborator

Improve protectWorkbook() to store a specific type. This is a draft, I couldn't test this with LibreOffice.

tmp_file <- openxlsx:::temp_xlsx()

wb <- createWorkbook()
addWorksheet(wb, "s1")
protectWorkbook(wb, password = "abcdefghij")
saveWorkbook(wb, tmp_file, overwrite = TRUE)

@JanMarvin JanMarvin changed the title [WIP] add DocSecurity type to protectWorkbook [WIP] add DocSecurity type to protectWorkbook. closes #201 Jun 21, 2021
@ycphs ycphs merged commit c918852 into ycphs:master Jun 21, 2021
JanMarvin added a commit to JanMarvin/openxlsx2 that referenced this pull request Apr 10, 2022
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

Successfully merging this pull request may close these issues.

2 participants