• Post Reply Bookmark Topic Watch Topic
  • New Topic

POI - HSSFCell.setCellValue (HSSFRichTextString)

 
Subhakar Gummadi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using the latest POI API to create an Excel File. After creating the Cell, when I tried to use the following code, I am getting Run time Errors.

<code>
HSSFRichTextString hrts = new HSSFRichTextString("TEsting");
cell.setCellValue(hrts);
</code>

There are no compilation Errors.

When I am using the following line of code instead of above two lines, then I am getting a warning message that the method is decripacated. But no run time errors.

cell.setCellValue("Event Name");

My Question: Can any one please help me to fix this issue or Is there any update on this issue any where on the internet?

Thank you all great people!!!

- Subhakar.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What runtime error is that?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!