Browse Source

程序网络报表-https://help.fanruan.com/finereport/doc-view-685.html

帮助文档中二次开发模块,程序网络报表文档中决策报表的示例代码
release/11.0
Rosie 4 years ago
parent
commit
4d23fc467a
  1. 34
      src/main/java/com/fr/demo/SimpleReportletDemoFrm.java

34
src/main/java/com/fr/demo/SimpleReportletDemoFrm.java

@ -0,0 +1,34 @@
package com.fr.demo;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.fr.form.main.Form;
import com.fr.form.main.FormIO;
import com.fr.web.weblet.Formlet;
public class SimpleReportletDemoFrm extends Formlet {
@SuppressWarnings("rawtypes")
@Override
public void setParameterMap(Map arg0) {
// TODO Auto-generated method stub
}
@Override
protected Form createForm(HttpServletRequest request) throws Exception {
Form form = null;
//模板的相对路径
String tplPath = "//doc//frm//决策报表入门.frm";
this.setTplPath(tplPath);
try {
form = FormIO.readForm(tplPath);
} catch (Exception e) {
e.printStackTrace();
}
return form;
}
}
Loading…
Cancel
Save