"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
harish Rudra wrote:Thank you for replying whether Aspose which you told is an open source. If it is opensource i am pretty happy .Because I am doing an application in which complex doc operation should be done.thanks in advance
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
harish Rudra wrote:I am already using this Apache POI and I am going to try to modify the existing doc file with the insertion of table and image .
When I inserted a table into doc file with following code for insertion its inserting but with out borders so it is not visible doc file.If you solved this problem I am greatly thanks to you.Thanku in advance
File f=new File("/home/harish/Desktop/TextModify/test.doc");
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(f));
HWPFDocument hwpf=new HWPFDocument(fs);
TableProperties tp=new TableProperties(4);
BorderCode br=new BorderCode();
tp.setBrcBottom(br);
tp.setBrcLeft(br);
tp.setBrcRight(br);
tp.setBrcTop(br);
tp.setDyaRowHeight(5);
tp.setFTableHeader(true);
tp.setDxaGapHalf(3);
tp.setTlp(10);
hwpf.getRange().getSection(0).getParagraph(1).insertBefore(tp,4);