Questions tagged «jasper-reports»

18
字体无法用于Jasper Reports的JVM
我正在尝试使用DynamicJasper生成报告,但出现以下错误: net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. msttcorefonts已安装,但是我想JVM没有使用它的任何字体。 我正在使用Ubuntu 10.04。 我怎样才能解决这个问题?



1
Jasper报告组件​​无法在JavaFX Swing节点中正确呈现
为了在JavaFX 11中创建Jasper报告,我使用了动态报告。我正在将报告加载到Swing Node中,但是只有当我单击堆栈窗格区域时,才会显示Jasper报告,并且只有将鼠标悬停在所有这些组件上时,所有其他组件才可见。组件和报告内容不会立即加载,而不是在鼠标悬停时显示,并且在“堆栈窗格”上滚动时显示报告。 因为这是Java 8中的错误,似乎已经解决,但是在Java 11中,我也遇到了同样的问题。 更新资料 由于我没有得到任何回应,并且按照kleopatra的建议,我创建了最少的可复制代码。请调查一下。 JavaFxJasperReportsDemo.java package demo; import java.util.ArrayList; import java.util.List; import javax.swing.SwingUtilities; import javafx.application.Application; import javafx.application.Platform; import javafx.embed.swing.SwingNode; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.StackPane; import javafx.stage.Stage; import javafx.stage.WindowEvent; import net.sf.dynamicreports.jasper.builder.JasperReportBuilder; import net.sf.dynamicreports.report.builder.DynamicReports; import net.sf.dynamicreports.report.builder.column.Columns; import …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.