【仅供内部供应商使用,不提供对外解答和培训】
...
Code Block | ||||
---|---|---|---|---|
| ||||
public class XmlExporter extends AbstractAppExporter { @Override public void export(OutputStream out, ResultWorkBook book) throws Exception { // 不分页导出的实现 } @Override public void export(java.io.OutputStream out, PageSetProvider pageSet) throws Exception { // 分页导出的实现 } } |
给contentPane(分页预览、填报预览)的web对象增加导出函数:给contentPane(分页预览、填报预览)的web对象增加导出函数:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
(function($){ // 你好啊,导出 $.extend(FR.WritePane.prototype, { exportReportToXML : function() { if (this.fireEvent("beforexml") === false) { return; } var self = this; this.saveReport(function () { window.location = FR.servletURL + "?op=export&sessionID=" + self.currentSessionID + "&format=xml"; FR.progressBar(self.currentSessionID,"xml"); self.fireEvent("afterxml"); }); } }); $.extend(FR.PagePane.prototype, { exportReportToXML : function() { if (this.fireEvent("beforexml") === false) { return; } window.location = FR.servletURL + "?op=export&sessionID=" + this.currentSessionID + "&format=xml"; FR.progressBar(this.currentSessionID, "xml"); this.fireEvent("afterxml"); } }); })(jQuery); |
...