Free Support Forum - aspose.com

Image and text together

Hi, I need to have cells with text and image. Is this possible? Thx in advance.

Hi,

Could you show us the sample how you would like to get, we will check it soon.

Thank you.

Sure, I need a text value in a cell, but also need to display an image in the same cell. Now, I already have the text, but when I use Hyperlink to add the image then the text is gone and just the image is shown. I see that Hyperlink has a "Text" property but when I set it, nothing changes (just the image is shown).

cell.PutValue("whatever");

link = sheet.Hyperlinks.AddHyperlink(cell);

link.ImageUrl = "note.gif";

link.Text = "nothing change";

It seems that the cell can display only one object at a time (text or image), not both.

Thx in advance.

Hi,

The Text is only displayed when the ImageUrl is null. The grid doesn't support display image and text at the same time in one cell.

I think you may put the text and image in closed cells, and merge some cells beside them to get better format.