Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Write BOLD Content In Excel File

 
Tanzy Akhtar
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to make some heading in an excel file.

I wrote a java code to write the same.
In the code, simply used a buffered writer to write in a file.
Formatted print messages with comma separated so that if i ll open the text file in excel it will show proper messages.

Now i want some content to be bold.
Tried <B> but didn't work.

Give me a path to achieve this..

Thanks,
Tanzy.
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use something like Apache POI
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or try using XML. But you cannot achieve this by using plain text, like a csv file.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... something like Apache POI

... and its Quick Guide shows how to work with fonts, bold or otherwise.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49405
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for "beginning Java." Moving thread.
 
Tanzy Akhtar
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ulf, Christophe and Maneesh for your valuable suggestions.

I will try to implement in that way.

Thanks,
Tanzy.
 
shukla raghav
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is the solution : Use POI api
 
Tanzy Akhtar
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Shukla.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic