This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How To Write BOLD Content In Excel File  RSS feed

 
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
Bartender
Posts: 11445
18
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: 42972
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
Marshal
Posts: 55681
162
  • 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
Boost this thread!