Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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
 
Marshal
Posts: 27291
87
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic