user1798578
user1798578

Reputation: 221

Java save String to Excel file as a URL

Hi i'm trying to save a string (http://www.google.com) to a my Excel file in a Hyperlink format but the string is saved as plain text.

Upvotes: 0

Views: 495

Answers (1)

user4910279
user4910279

Reputation:

Try this.

  HSSFHyperlink link = createHelper.createHyperlink(HSSFHyperlink.LINK_URL);
  link.setAddress(Result);
  Cell.setHyperlink(link);

Upvotes: 3

Related Questions