You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies, I'm still quite new to RoR, and maybe I'm missing something obvious to everyone else, but how do I close a Roo file once open? I've got spreadsheet = Roo::Spreadsheet.open(file_name) just fine, but I want to do either spreadsheet.close, or preferably, Roo::Spreadsheet.open(self.file_name) do |spreadsheet| ... end.
Is there a way to do this, or is it something missing? I ask because I'm running into problems deleting files after parsing them, and I'm pretty sure it's because they still are locked open by Roo.
The text was updated successfully, but these errors were encountered:
I have the same issue. I want to read information from a readonly xls - file.
Roo cannot open such a file (in readonly mode). So I make a temporary copy and remove the write protection. But I don't find a way to remove the temporary spreadsheet, since it is still locked by ruby.
Apologies, I'm still quite new to RoR, and maybe I'm missing something obvious to everyone else, but how do I close a Roo file once open? I've got spreadsheet = Roo::Spreadsheet.open(file_name) just fine, but I want to do either spreadsheet.close, or preferably, Roo::Spreadsheet.open(self.file_name) do |spreadsheet| ... end.
Is there a way to do this, or is it something missing? I ask because I'm running into problems deleting files after parsing them, and I'm pretty sure it's because they still are locked open by Roo.
The text was updated successfully, but these errors were encountered: