我是JSf
和Tomahawk Technology的新手。在应用程序中,我有一个数据表,我想存储的信息从数据表到PDF格式的点击一个按钮使用Tomahawk
和SandBox
.Kindly帮助。
发布于 2010-02-25 10:47:29
更好的方法是使用JasperReports。它在后台使用iText将报告导出为PDF。
发布于 2010-02-25 10:43:21
为此,您可能需要使用iText。
发布于 2010-03-26 11:38:44
正如您所提到的,您正在使用沙箱,使用沙箱中的exporterActionListener
组件将数据从data tabel导出到PDF。您需要使用相同版本的itext-0.99.jar
代码示例
<!-- sandbox tag library declaration -->
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
.
. <!-- your data Tabel will be here -->
.
.
<h:commandButton value="Export as pdf">
<s:exporterActionListener for="Id of the Data Tabel" fileType="PDF" />
</h:commandButton>
https://stackoverflow.com/questions/2333288
复制相似问题