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

Free Support Forum - aspose.com

Cannot retrieve hyperlink

Hi there

I have a PPT file which contains a hyperlink on the second slide. I tried to query the Link property of the shape containing the link, but it is always null. I was wondering if you could provide me with sample code to acquire the link, or if Aspose.Slides cannot return it for some reason? I have attached the file for testing.



Hi Eric,

Please try the following code:

Presentation pres = new Presentation("d:\\ppt\\eric\\test+quiz+show.ppt");

ITextBox[] tb = PresentationScanner.GetAllTextBoxes(pres, false);

for (int i = 0; i < tb.Length; i++)


TextFrame tf=(TextFrame)tb[i];

foreach( Link lnk in tf.Links )


if(lnk.ExternalHyperlink != null)