<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7758114000990713523.post4849986123342666930..comments</id><updated>2010-05-03T18:14:16.586-04:00</updated><title type='text'>Comments on Coding Thoughts: Using POI to Export Lotus Notes Data to Excel</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.criverapr.com/feeds/4849986123342666930/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default'/><link rel='alternate' type='text/html' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html'/><author><name>Carlos</name><uri>http://www.blogger.com/profile/09961478284332496098</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7758114000990713523.post-903165414420033049</id><published>2010-05-03T18:14:16.582-04:00</published><updated>2010-05-03T18:14:16.582-04:00</updated><title type='text'>this is a earlier code that have various errors i ...</title><content type='html'>this is a earlier code that have various errors i will try to put some good code just a example for you analyse &lt;br /&gt;&lt;br /&gt;thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/903165414420033049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/903165414420033049'/><link rel='alternate' type='text/html' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html?showComment=1272924856582#c903165414420033049' title=''/><author><name>Caldeira&amp;amp;Peixoto</name><uri>http://www.blogger.com/profile/01724676694141215599</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html' ref='tag:blogger.com,1999:blog-7758114000990713523.post-4849986123342666930' source='http://www.blogger.com/feeds/7758114000990713523/posts/default/4849986123342666930' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7758114000990713523.post-1938753618295095446</id><published>2010-05-03T18:12:22.956-04:00</published><updated>2010-05-03T18:12:22.956-04:00</updated><title type='text'>import org.apache.poi.hwpf.usermodel.*;
import org...</title><content type='html'>import org.apache.poi.hwpf.usermodel.*;&lt;br /&gt;import org.apache.poi.hssf.model.*;&lt;br /&gt;import org.apache.poi.hssf.*;&lt;br /&gt;&lt;br /&gt;import org.apache.poi.hwpf.HWPFDocument;&lt;br /&gt;&lt;br /&gt;import org.apache.poi.hwpf.usermodel.Range;&lt;br /&gt;import org.apache.poi.hwpf.usermodel.Paragraph;&lt;br /&gt;import org.apache.poi.hwpf.usermodel.Table;&lt;br /&gt;import org.apache.poi.hwpf.usermodel.Section;&lt;br /&gt;&lt;br /&gt;import java.util.Map;&lt;br /&gt;import java.util.HashMap;&lt;br /&gt;import java.util.Calendar;&lt;br /&gt;import java.io.FileOutputStream;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;import java.io.FileOutputStream;&lt;br /&gt;&lt;br /&gt;import lotus.domino.*;&lt;br /&gt;import java.util.*;&lt;br /&gt;import java.text.*;&lt;br /&gt;import java.io.*;&lt;br /&gt;import java.lang.*;&lt;br /&gt;import java.util.Date;&lt;br /&gt;import java.io.PrintWriter;&lt;br /&gt;&lt;br /&gt;public class Word&lt;br /&gt;{&lt;br /&gt;/*&lt;br /&gt;openDocument&lt;br /&gt;openParagraph&lt;br /&gt;openBody&lt;br /&gt;openSection&lt;br /&gt;openTitle&lt;br /&gt;openSource&lt;br /&gt;writePlainText&lt;br /&gt;closedocument...&lt;br /&gt;&lt;br /&gt;*/&lt;br /&gt;      private int curRow;&lt;br /&gt;//      private POIDocument(dir, filesystem);&lt;br /&gt;// private HSSFWorkbook curWB;&lt;br /&gt;// private HSSFSheet curSheet;&lt;br /&gt;                   //  PrintWriter pw = getAgentOutput(); +&amp;quot;&lt;br&gt;&amp;quot;  // erro&lt;br /&gt;  /*                 public  boolean Range(int start, int end, HWPFDocument doc)&lt;br /&gt;                 {&lt;br /&gt;                    try {&lt;br /&gt;                     &lt;br /&gt;                              } catch(Exception ex) &lt;br /&gt;                                {&lt;br /&gt;                    ex.printStackTrace();&lt;br /&gt;                   return(false); &lt;br /&gt;                          }&lt;br /&gt;}     */&lt;br /&gt;                   &lt;br /&gt; public boolean writeWordHeader(String[] rowValues)&lt;br /&gt;     {&lt;br /&gt;  try {&lt;br /&gt;   this.curRow = 0;&lt;br /&gt;  // this.curWB = new HSSFWorkbook();&lt;br /&gt;  // this.curSheet = this.curWB.createSheet(&amp;quot;Sheet1&amp;quot;);&lt;br /&gt;&lt;br /&gt;   //This will write the header row&lt;br /&gt;   System.out.println(&amp;quot;estou no header \n&amp;quot;);&lt;br /&gt;   return(this.writeToWord(rowValues));&lt;br /&gt;  } catch(Exception ex) {&lt;br /&gt;   ex.printStackTrace();&lt;br /&gt;   return(false); &lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt; }&lt;br /&gt; public boolean writeToWord(String[] rowValues) {&lt;br /&gt;    System.out.println(&amp;quot;valor da linha: &amp;quot;);&lt;br /&gt;    System.out.println(&amp;quot;valor: &amp;quot; + rowValues);&lt;br /&gt;  try {&lt;br /&gt;&lt;br /&gt;  // HSSFRow row = this.curSheet.createRow(this.curRow);&lt;br /&gt;    &lt;br /&gt;   for(int i = 0; i &amp;lt; rowValues.length; i++) {&lt;br /&gt;  //  row.createCell(i).setCellValue(new HSSFRichTextString(rowValues[i])); &lt;br /&gt;    System.out.println( &amp;quot;linha: &amp;quot; + rowValues[i]);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;  // this.curRow++;&lt;br /&gt;&lt;br /&gt;  } catch(Exception ex) {&lt;br /&gt;   ex.printStackTrace();&lt;br /&gt;   return(false);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  return(true);&lt;br /&gt; }&lt;br /&gt; public boolean writeWordFile(String fileName) &lt;br /&gt; {&lt;br /&gt;  System.out.println(&amp;quot;filename: &amp;quot; + fileName);&lt;br /&gt;  try {&lt;br /&gt;   //Auto fit content&lt;br /&gt;   &lt;br /&gt;   for(int i = 0; i &amp;lt; 20; i++) {&lt;br /&gt; //   this.curSheet.autoSizeColumn((short)i);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   // Write the output to a file&lt;br /&gt;   FileOutputStream fileOut = new FileOutputStream(fileName);&lt;br /&gt;   System.out.println(&amp;quot;nome: &amp;quot; + fileOut);&lt;br /&gt;  // this.curWB.write(fileOut);&lt;br /&gt;   fileOut.close();&lt;br /&gt;  } catch(Exception ex) {&lt;br /&gt;   ex.printStackTrace();&lt;br /&gt;   return(false);&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  return(true);&lt;br /&gt;&lt;br /&gt; } &lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/1938753618295095446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/1938753618295095446'/><link rel='alternate' type='text/html' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html?showComment=1272924742956#c1938753618295095446' title=''/><author><name>Caldeira&amp;amp;Peixoto</name><uri>http://www.blogger.com/profile/01724676694141215599</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html' ref='tag:blogger.com,1999:blog-7758114000990713523.post-4849986123342666930' source='http://www.blogger.com/feeds/7758114000990713523/posts/default/4849986123342666930' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7758114000990713523.post-2277844368824460610</id><published>2010-04-29T19:50:44.773-04:00</published><updated>2010-04-29T19:50:44.773-04:00</updated><title type='text'>Hi Carlos, Thank you for your understanding and an...</title><content type='html'>Hi Carlos, Thank you for your understanding and answer, i´m sorry i lost your page so just today i could see it.&lt;br /&gt;&lt;br /&gt;Yes i have errors and i can post some of my code that i worked to get the word file, its dificul since i dont program a lot in java just lotuscript, javascript a litle to.&lt;br /&gt;well i onnly can read and create a file .doc/.docx but mt error was to write inside it some string/phrase.&lt;br /&gt;I will post soon, i leave a rest a while because now i´m learning were i work smallworld magik programming its diferrent programming like c++ you know gis? &lt;br /&gt;&lt;br /&gt;well for now i will return to the POI Vs word.&lt;br /&gt;&lt;br /&gt;Thank you beste regards</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/2277844368824460610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/2277844368824460610'/><link rel='alternate' type='text/html' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html?showComment=1272585044773#c2277844368824460610' title=''/><author><name>Caldeira&amp;amp;Peixoto</name><uri>http://www.blogger.com/profile/01724676694141215599</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html' ref='tag:blogger.com,1999:blog-7758114000990713523.post-4849986123342666930' source='http://www.blogger.com/feeds/7758114000990713523/posts/default/4849986123342666930' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7758114000990713523.post-2567837195060095474</id><published>2010-04-18T11:19:35.967-04:00</published><updated>2010-04-18T11:19:35.967-04:00</updated><title type='text'>Hi Caldeira,

Are you trying to export data from L...</title><content type='html'>Hi Caldeira,&lt;br /&gt;&lt;br /&gt;Are you trying to export data from Lotus Notes to a Word document?  Are you getting any specific error?  &lt;br /&gt;&lt;br /&gt;I will create a simple example of doing this with the Apache POI Project and post soon.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/2567837195060095474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/2567837195060095474'/><link rel='alternate' type='text/html' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html?showComment=1271603975967#c2567837195060095474' title=''/><author><name>Carlos</name><uri>http://www.blogger.com/profile/09961478284332496098</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10625087499488905914'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html' ref='tag:blogger.com,1999:blog-7758114000990713523.post-4849986123342666930' source='http://www.blogger.com/feeds/7758114000990713523/posts/default/4849986123342666930' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7758114000990713523.post-2105197867483473569</id><published>2010-04-16T06:18:35.927-04:00</published><updated>2010-04-16T06:18:35.927-04:00</updated><title type='text'>Hi, 

I enjoy your code its really works thank you...</title><content type='html'>Hi, &lt;br /&gt;&lt;br /&gt;I enjoy your code its really works thank you.&lt;br /&gt;All do i´m triyng to do the same with word documents but with no success!!! are doing the same? Will you try it out?&lt;br /&gt;&lt;br /&gt;Regards &lt;br /&gt;&lt;br /&gt;Filipe</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/2105197867483473569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7758114000990713523/4849986123342666930/comments/default/2105197867483473569'/><link rel='alternate' type='text/html' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html?showComment=1271413115927#c2105197867483473569' title=''/><author><name>Caldeira&amp;amp;Peixoto</name><uri>http://www.blogger.com/profile/01724676694141215599</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.criverapr.com/2008/10/using-poi-to-export-lotus-notes-data-to.html' ref='tag:blogger.com,1999:blog-7758114000990713523.post-4849986123342666930' source='http://www.blogger.com/feeds/7758114000990713523/posts/default/4849986123342666930' type='text/html'/></entry></feed>