caxlsx / caxlsx_rails

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

Not showing repeated headers #95

Closed JohnSmall closed 6 years ago

JohnSmall commented 6 years ago

In the examples.rb for axslx 2.0.1.pre there's an example to show how to extract one row and use that row as a repeated header when printing. It works. But..

When I try the same technique in a template it doesn't work. I've even removed all my data from the template and copied in the exact same code from examples.rb and it doesn't work.

The code for repeated headers in the axslx gem examples works. The same code used inside a axlsx template doesn't work.

Any idea what I might be doing wrong?

straydogstudio commented 6 years ago

what version of Axlsx and axlsx_rails is being used in your app? Can you do the headers inside a Rails script with rails runner (or in the console by manually entering the code)?

straydogstudio commented 6 years ago

It looks like this is an Axlsx issue. Let me know if you want to revisit it.