File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Extra double quote introduced when using POI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Extra double quote introduced when using POI" Watch "Extra double quote introduced when using POI" New topic
Author

Extra double quote introduced when using POI

Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

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


[Download samplefile.bmp] Download

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

But it doesn't double up the quotes when you copy the cell to Wordpad. So, another bug in Notepad.
Muthukrishnan Manoharan
Ranch Hand

Joined: Aug 27, 2008
Posts: 91

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.
 
jQuery in Action, 2nd edition
 
subject: Extra double quote introduced when using POI