将 javascript 嵌入到 jasper 报告 pdf 中?
我想将 javascript 函数嵌入到 jasper 生成的 pdf 文件中。 我想到这个是因为我想让 pdf 文件自动打开打印对话框。 阅读这个问题并尝试这个示例 我也想做同样的事情。
但我使用 iReport 设计器创建我的 pdf 模板,然后使用 struts 操作导出,知道如何在 ireport 中嵌入 javascript 吗?
谢谢
I want to embed a javascript function into a pdf file generated by jasper.
it comes to my mind because I want to make the pdf file auto open printing dialog.
after reading this question and tried this example I want to do the same.
but I use iReport designer to create my pdf templates and then export using struts actions, any idea how to embed javascript with ireport?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用
net.sf.jasperreports.export.pdf.javascript
属性。有关此属性的信息位于此处 。
You can try to use the
net.sf.jasperreports.export.pdf.javascript
property.The information about this property is here.