caxlsx / caxlsx_rails

A Rails plugin to provide templates for the axlsx gem
MIT License
735 stars 84 forks source link

File encrypted password in xlsx #145

Closed MaeCess closed 2 years ago

MaeCess commented 3 years ago

Currently, I'm using gem caxlsx for generating my excel'

is there anyone try to file a password before generating the excel file?

the goal here. is the user click the button then some text will pop up to type the password of excel. then the system will generate the excel automatically download in the browser.

straydogstudio commented 3 years ago

@MaeCess Sorry for the lack of response here. Did you get a solution for your problem? You would just have to have a method to request the password for the file before you generate it, sending it as a parameter.

tlkiong commented 3 years ago

@straydogstudio What method would that be?

straydogstudio commented 2 years ago

@tlkiong I'm closing this as it isn't really an issue with this gem. You'll need to create a way inside Rails to accept input from the user, whether a form or a JavaScript popup, and send that password with your request to the server. Then use that password while creating the xlsx file.