Java使用IText(VM模版)导出PDF,IText导出word(二)
摘要:
//退款导出word
public void exportWordTk() throws IOException{
Long userId=(Long)ServletActionContext.getContext().getSession().get(Constant.SESSION_USER_ID);
//获取生成Pdf需要的一些路径
String tmPath=ServletActionContext.getServletContext().getRealPath("download/template");//vm 模板路径
String wordPath=ServletActionContext.getServletContext().getRealPath("download/file");//生成word路径
//wordPath+"/"+userId+"_"+fk+".doc"
//数据
Map map=new HashMap();// 阅读全文
posted @ 2015-08-29 14:48 qgc 阅读(1522) 评论(0) 推荐(0)
浙公网安备 33010602011771号