• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Extra double quote introduced when using POI

 
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
File size: 16 Kbytes
 
Sheriff
Posts: 24654
58
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.
 
Something must be done about this. Let's start by reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!