Comments (2)
ok, first looking into the code then "complaining"... I fixed it by using a report ID to load a template:
// getAttribute("template",defValue) returns the template URI/URL so its unique
IXDocReport report =XDocReportRegistry.getRegistry().loadReport(tmplIn,getAttribute("template",null),TemplateEngineKind.Freemarker);
from xdocreport.
To have a very good performance, you must use IXDocReportRegistry#loadReport
the first time and IXDocReportRegistry#getReport
the second time. See https://code.google.com/p/xdocreport/wiki/DocxReportingJavaMain#5._Test_Performance
By default XDocReport uses Freemarker cache. If you don't wantt o use this cache (and not use loadReport/getReport) you can call for instance this loadReport https://github.com/opensagres/xdocreport/blob/master/document/fr.opensagres.xdocreport.document/src/main/java/fr/opensagres/xdocreport/document/registry/XDocReportRegistry.java#L284
with cacheReport to false.
from xdocreport.
Related Issues (20)
- @w:p not working within unordered list item [docx] [freemarker] HOT 4
- Error: Cannot find converters from=ODT HOT 1
- For each slide/page
- Parallel processing on UNIX based systems do not convert each image to PDF
- XSLX support HOT 2
- Calling another constructor
- When word converts pdf, it cannot convert lines.
- Code Style outdated
- Π‘an you add the functionality described below? Shortly: getPayloadContentFromFile()
- Problems with null values management HOT 1
- $velocityCount problem HOT 1
- Convert to PDF error with grid HOT 2
- NoSuchMethodError while trying to convert odt to pdf HOT 3
- Footer page numbers not appearing after using PdfConverter HOT 2
- When converting docx to html, charts and shapes are ignored. HOT 2
- How to get into mapper.useTotalPageField() with the word document? HOT 2
- Composite numeric list is not converted correctly
- Add support for HTML Colors HSL and Colornames
- itext7 support HOT 1
- Chinese numbering list can not render correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdocreport.