如何将生成的 .jasper 文件的目标选择到 Jaspersoft Studio 6.1 中?

How can I choose the destination of the generated .jasper file into Jaspersoft Studio 6.1?

我绝对是 JasperReports 的新手,我遇到了以下问题:我正在研究一个将 Excel 文件生成到 Jaspersoft 中的项目Studio 6.1.0.

之后我保存我的 .jrxml 文件项目并构建它,所以它似乎生成了相关的 .jasper 文件到我的 Windows 系统的 Desktop 文件夹。

如何选择生成此 .jasper 文件的目录?

不幸的是,您不能像 那样选择构建 .jasper 的位置。

Quoting mrabbi (jasper 报告员)

currently in Jaspersoft Studio when compiled the JRXML produces the .jasper file in the same folder position where they are. This is an implementation choice.

如果你不想看到它们,你可以隐藏它们,你可以在构建时配置一个 "additional" 输出目录(jasper 将被复制到这里)。

在 IReport 中,它是工具 > 选项 > IReport > 编译和执行然后取消勾选 "Use Report Directory to compile" 你可以 select 一个新的。