We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Question about Smart Markers

Hello support,


Can we display multiple hyperlinks with images in one cell by using smart markers ?
The images are choosen at the runtime.

Regards

Hi,


Well, Aspose.Cells for .NET does support Image smart markers (see the topic: http://docs.aspose.com/display/cellsnet/Smart+Markers check text/example under the subtopic: “Image Markers”), but since the markers are processed based on the cells and one cell can contain one smart marker, so, I am afraid, you cannot add two images in a single cell using smart markers.

Well, you need to insert two hyperlinked images in a single cell, so, you have to insert hyperlinked images using Aspose.Cells APIs and not via Smart Markers feature, see some topic for reference:
http://docs.aspose.com/display/cellsnet/Adding+Pictures

Sample code:
//Adding a picture at the location of a cell whose row and column indices
//are 5 in the worksheet. It is "F6" cell
int pictureIndex = worksheet.Pictures.Add(5, 5, "e:\\test\\chartimage.jpg");
//Use the code to access the picture.
//...............
//Add the hyperlink to the image.
pic.AddHyperlink("http://www.aspose.com");
pic.Hyperlink.ScreenTip = "This is my pic";


Thank you.

Hi,


Thank you .