Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for loading "templates" from InputStream #22

Open
strelok1 opened this issue Jun 5, 2014 · 2 comments
Open

Add support for loading "templates" from InputStream #22

strelok1 opened this issue Jun 5, 2014 · 2 comments

Comments

@strelok1
Copy link

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
Copy link

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?

@jmendiola222
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants