编写Word文档使用Java POI仅在最后一个值中写入ms单词 [英] writing word document gives to write ms word in only one in the last value using Java POI

查看:72
本文介绍了编写Word文档使用Java POI仅在最后一个值中写入ms单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我已经使用Java POI在ms字中写入了值,但是我的程序仅在写入Word文档的最后一个值中写入了一个值.有人请帮助我...


我已经传递的数据库值是writeToFile(result1,filename);此功能

Dear Friends,

I have writing the values in ms word using java POI but my program writing the values in only one in the last value write to word document.It does not write overral value how i will write all the values. someone please help me ...


i have passing database values is writeToFile(result1,filename); this function

POIFSFileSystem fs = new POIFSFileSystem();

DirectoryEntry directory = fs.getRoot();
directory.createDocument("WordDocument", new ByteArrayInputStream(content.getBytes()));
FileOutputStream out = new FileOutputStream(path);
fs.writeFilesystem(out);
out.close();


有人请帮我

问候
Andavar.P


someone pls help me

regards
Andavar.P

推荐答案

去阅读POI文档.


这篇关于编写Word文档使用Java POI仅在最后一个值中写入ms单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆