Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extra double quote introduced when using POI

 
Muthukrishnan Manoharan
Ranch Hand
Posts: 91
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Apache POI for exporting a result set to an excel sheet. When doing so, one of the columns that has XML data has extra double quotes introduced when copying the cell from the generated Excel sheet to notepad. But those extra double quotes doesn't appear in the generated Excel sheet. This happens only when copying the cell from Excel to notepad.

Is this due to Apache POI for generating excel sheet dynamically. Because I tried creating a similar sheet manually and tried copying it, I didn't have any problem.

Please somebody help me.

I used the following for filling up the cell


also I tried this



Both had the same problem. I have attached with this the concerned XLS file. Please rename it to .xls as the forum rules doesn't allow XLS file to be uploaded.

Thanks in advance
Filename: samplefile.bmp
Description:
File size: 16 Kbytes
[Download samplefile.bmp] Download Attachment
 
Paul Clapham
Sheriff
Pie
Posts: 20958
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But it doesn't double up the quotes when you copy the cell to Wordpad. So, another bug in Notepad.
 
Muthukrishnan Manoharan
Ranch Hand
Posts: 91
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But is this really a bug with notepad, because with TextPad also it shows up the same way.

But is there any solution to this problem as the exported stuff will be used with notepad mostly. Should I change the way I write the data to cell using POI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic