Add support for loading "templates" from InputStream #22

strelok1 opened this Issue Jun 5, 2014 · 2 comments


None yet
3 participants

strelok1 commented Jun 5, 2014

WebXlsxExporter needs a constructor

WebXlsxExporter(InputStream stream) { 

to support loading of templates from resources.

Right now the work around is:

def template =grailsApplication.parentContext.getResource("classpath:ReportTemplate.xlsx").inputStream
                    tempFile = File.createTempFile("ReportTemlate", ".xlsx")
                    tempFile << template
                    new WebXlsxExporter(tempFile.absolutePath).with { ... }

nmaynes commented Jan 15, 2015

This issue held me up for more hours than I would like to admit. How can I contribute to adding a constructor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment