xdocreport

    0热度

    1回答

    在Java中使用XDocReport库时,我想使用odt模板创建odt文档,然后将文件转换为pdf文件。 当过我跑我的代码,我得到了错误: Error in fr.opensagres.xdocreport.document.AbstractXDocReport, line 866: fr.opensagres.xdocreport.core.XDocReportException: Null t

    1热度

    2回答

    我想在XDoc报告中使用一个简单的freemarker宏,但是我找不到添加和调用它的方法。 <#macro address company> <#if company.name??>${company.name}</#if> <#if company.address??>${company.address}</#if> </#macro>

    4热度

    1回答

    我想用apache poi将docx转换为pdf,使用docx4j正确生成docx。用简单的文档转换工作很好,但是当我想转换一个更程式化的文档,POI会抛出异常: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException:工会值“0000FF“> HTTP: //schemas.openxmlformats.org/wordproces

    0热度

    1回答

    我想: 使用带有 “MERGEFIELDS” Word文档与数据 转换为来填补它PDF文件,用java 我有这方面的工作之前,现在突然我得到了以下错误: java.lang.NoSuchMethodError: org.apache.poi.xwpf.usermodel.XWPFHyperlinkRun. 当我将.war文件放在Amazon EC2服务器上时发生这种情况。 (所有其他图书馆工作的罚

    1热度

    1回答

    我正在测试来自XDocReport的示例代码。我结合在一起,创建了基于docx模板的docx和pdf报告。但是我一直在收到此消息 Apr 21, 2016 5:39:10 PM fr.opensagres.xdocreport.converter.ConverterRegistry internalFindConverter SEVERE: Cannot find converters from

    0热度

    2回答

    我使用xdocreport生成一个文件。在它的IDE工作正常,但一旦我测试我的程序作为一个运行的JAR,不再被生成的文件,而不是我得到的错误,当我尝试以按给定的tutoriel运行的JAR fr.opensagres.xdocreport.core.XDocReportException: Null template engine. Set template engine with IXDocRe

    0热度

    1回答

    我向模板插入两个图像:“徽标”和“背景” 但模板中只显示背景图像。 创建ImageProdiver private IImageProvider createImageProvider(IXDocReport ixDocReport, String fieldName, Blob image) { FieldsMetadata metadata = ixDocReport.createF

    0热度

    1回答

    有没有办法在XDocReport中处理字段的空值?还是我需要自己操纵它?例如: if (thisVar == null) context.put("sampleText", ""); else context.put("sampleText", thisVar); 或者在docx快速部件中有选项吗? 我在XDocReport的错误信息中发现了这一行。不过,我无法理解在模板

    0热度

    1回答

    有一个简单的ods模板。 只是想迭代一个列表,并在列 显示的数据是工作在ODT格式,其中我在一个表中的第一个字符有这样的: @table:table-row [#list booksList! as book] @/table:table-row [/#list] 这不是在ODS工作( 。没有迭代行显示一个空单元格和文本。“@table:表行” 一行(无环)在ODS文件中的以下free

    0热度

    1回答

    我需要将docx转换为pdf。以下代码使用库xdocreport并且工作得很好。 问题是针对某些包含图纸的特定docx。它们在最终的pdf中不可见。我已经通过github上的live demo进行了测试,我也遇到了同样的问题。 所以我想知道,这是可能的,还是我需要使用其他库?哪一个 ? (dox4j似乎也不适用)。 final XWPFDocument document = new XWPFDoc