• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Extra double quote introduced when using POI

 
Ranch Hand
Posts: 91
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
File size: 16 Kbytes
 
Sheriff
Posts: 28401
100
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic