File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

text styling in csv

 
sudheer sannareddy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a problem in styling the text of a csv. The problem is as given below:
We are generating xml files and converted to csv using XSLT. Now, a part of the data in the csv file has to be highlighted (bolded and displayed in a diff color) while displaying.I am unable to do any styling in the generated csv file. But I am also generating PDF file from XML using XSLT and i am able to do styling(e,g color change in some block).

Kindly suggest me how to go ahead in doing this. Waiting for replies... .
Thanks in advance.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSV is plain text, and includes no text styling information, so this is not possible.

If you were to create an XLS file (e.g. with a library like POI) you could include style information, but you wouldn't be able to use XSLT to do so.
 
sannareddy sudheer
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer ,Thanks for the reply. If you come across any sol for the same please reply back.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no solution. CSV is plain text, period. If you want styles, use POI to create an XLS file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic