thuliobuarque / java2word

Automatically exported from code.google.com/p/java2word
0 stars 0 forks source link

Error while creating tables #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What web framework and version are you using (Struts1, Struts2, Spring,
JBoss Seam)?
No one

Did you download j2w-ejb-2.0.zip or built from the source code?
Downloaded

Which web server did you deploy your .WAR (Tomcat, JBoss)?
No one

Are you using Maven or Ant?
No

What is your Operational System?
Win XP

What steps will reproduce the problem?
1. Copied example code to my own project
2. Organized imports
3. Try to run the app.

The problem is that, when I tried to run app, it managed to produce the MS Word 
file, but I cannot read it. When trying to open it, MS Word gives me the error 
message: Illegall XML character. Location: row: 2103, col: 39.

So I decided to copy the sample code pieces to pieces. That gave me the answer 
what is damaged. The problem is connected with the table. But not making its 
header (that was processed sucessfully), but the content - its rows (records). 
Namely with such a line: 

tbl.addTableEle(TableEle.TD, "Arthur Friedenreich", "1329", "Brazil");

So I guess, the problem is with the method addTableFile or the field 
TableFile.TD

Original issue reported on code.google.com by marek.fe...@gmail.com on 22 Sep 2011 at 11:57

GoogleCodeExporter commented 8 years ago
the problem is solved; sorry for the missed alert ;)
it was connected with special characters, such as á or é :)

Original comment by marek.fe...@gmail.com on 22 Sep 2011 at 12:05

GoogleCodeExporter commented 8 years ago
no worries mate...
special characters are the number one issues in this list...
I ll close it.

Original comment by leonardo...@gmail.com on 22 Sep 2011 at 12:45