得到这个异常:
fr.opensagres.xdocreport.core.XDocReportException: java.lang.NoSuchMethodError: freemarker.template.Configuration.setTagSyntax(I)V
at fr.opensagres.xdocreport.template.AbstractTemplateEngine.process(AbstractTemplateEngine.java:151)
at fr.opensagres.xdocreport.template.AbstractTemplateEng
我正试图找到一个将docx文件转换为XHTML的解决方案。
我找到了xdocreport,它看起来不错,但我有一些问题。(我是xdocreport的新手)
根据他们在github、和上的文档:我应该能够使用以下代码进行转换:
String source = args[0];
String dest = args[1];
// 1) Create options DOCX to XHTML to select well converter form the registry
Options options = Options.getFrom(DocumentKi
我处理不了这个问题。消息来源是:
try {
// 1) Load Docx file by filling Velocity template engine and cache it to the registry
InputStream in = new FileInputStream("/test.docx");
IXDocReport report = XDocReportRegistry.getRegistry().loadReport(in,TemplateEngineKind.Velocity);
使用Java中的ODT库,我想使用XDocReport模板来创建odt文档,然后将文件转换为pdf文件。每当我运行我的代码时,我都会得到以下错误:
Error in fr.opensagres.xdocreport.document.AbstractXDocReport, line 866: fr.opensagres.xdocreport.core.XDocReportException: Null template engine. Set template engine with IXDocReport#setTemplateEngine
我试过这个:
public void conve
我试图从XDocReport文档中重建示例,但当我试图创建或填充表时。由于折叠错误,它总是失败。我搞不懂是什么问题..。
我更新了所有的依赖项,并尝试了.odt文件中的不同语法。
错误:
Apr. 12, 2022 10:21:05 VORM. freemarker.log._JULLoggerFactory$JULLogger error
SEVERE: Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> de
我知道freemarker符合逻辑并且是&&,但是当我在xDocReport中使用它时,出现了一个错误:SystemId Unknown; Line #4; Column #2796; The entity name must immediately follow the '&' in the entity reference.。我将其更改为&&和\u0026\u0026,两者都不起作用。
代码详细信息:«[#if scope!='a' && scope!='b']»
我认为