Closed GoogleCodeExporter closed 8 years ago
what is this "null" in your path:
null\C:\Proyecto\Plantilla3.doc
Leonardo
Original comment by leonardo...@gmail.com
on 25 Sep 2011 at 8:48
Finally I have found the error, the problem is in this part of your code for
createLocalDocument:
public static void createLocalDocument(String myDoc, String fileName)
{ //Property prop = new Property(""); Properties prop =
new Properties(); *String tmpDocs = "";** try {**
prop.load(new FileInputStream("build.properties"));** }
catch (IOException e) {** e.printStackTrace();** }**
tmpDocs = (String) prop.get("tmp.docs.dir");*
//System.out.println(tmpDocs);
//"/home/leonardo/Desktop/Java2word_allInOne.doc" File fileObj
= new File(tmpDocs + "/" + fileName); PrintWriter writer =
null; try { writer = new PrintWriter(fileObj);
} catch (FileNotFoundException e) { e.printStackTrace();
} String myWord = myDoc; writer.println(myWord);
writer.close(); }
The problem is the mark text, I think that it works in Unix but not in
Windows, I try deleting this part of code and it works. You only should pass
the global root to method.
Original comment by jmo...@gmail.com
on 26 Sep 2011 at 3:28
Original comment by leonardo...@gmail.com
on 2 Feb 2012 at 12:25
Original issue reported on code.google.com by
jmo...@gmail.com
on 23 Sep 2011 at 12:07