Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add support for loading "templates" from InputStream #22

Open
strelok1 opened this Issue · 1 comment

2 participants

@strelok1

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

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
Something went wrong with that request. Please try again.