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
I have a worker (tried from mailer alos) that renders an .xlsx.axlsx template and writes it to a Tempfile. I'm using this in one worker and it works perfectly. In another place I'm trying to user it that uses almost the same exact code, but it doesn't render the xlsx properly, it just writes out a file with 0 bytes. If I do a puts in the terminal from render 'path/to/template.xlsx.axlsx it outputs stuff but it looks like some encoding is wrong. I can see hints of xml in the obfuscated output, but something is definitely wrong.
I'm not sure what was up, but I got it working by doing what was mentioned in #55 using the Axlsx::Package.new and the p.to_stream. I would prefer not to do it this way if anyone knows how to fix this, but it works for now 😄
I have a worker (tried from mailer alos) that renders an .xlsx.axlsx template and writes it to a Tempfile. I'm using this in one worker and it works perfectly. In another place I'm trying to user it that uses almost the same exact code, but it doesn't render the xlsx properly, it just writes out a file with 0 bytes. If I do a
puts
in the terminal fromrender 'path/to/template.xlsx.axlsx
it outputs stuff but it looks like some encoding is wrong. I can see hints of xml in the obfuscated output, but something is definitely wrong.Here's the code
And here's the show.xlsx.axlsx file
gem 'axlsx', '2.1.0.pre'
gem 'axlsx_rails'
rails 4.2.6
The text was updated successfully, but these errors were encountered: