• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 721
  • Last Modified:

How to select and bold the whole worksheet with Apache POI

I am a beginner with Apache POI library.

in VBA, I know I can select and bold the whole worksheet with following code

Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets(1)
ws.Cells.Font.Bold = True

May I know how to select and bold the whole sheet by coding with Apache POI library?

thanks
0
mishelper
Asked:
mishelper
  • 2
1 Solution
 
objectsCommented:
think you need to loop through all the cells, will ask around if theres an alternative
http://helpdesk.objects.com.au/java/dumping-excel-cells-using-poi
0
 
mishelperAuthor Commented:
thanks , appreciate if you can post no matter there is alternative way or not :)
0
 
objectsCommented:
sorry noone knew of a better way
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now