excel-export icon indicating copy to clipboard operation
excel-export copied to clipboard

Add support for loading "templates" from InputStream

Open strelok1 opened this issue 11 years ago • 2 comments

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 { ... }

strelok1 avatar Jun 05 '14 00:06 strelok1

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

nmaynes avatar Jan 15 '15 15:01 nmaynes

+1

jmendiola222 avatar Jan 13 '16 17:01 jmendiola222