I'm having problems adding a link to a PowerPoint. What I'd like to be able to do is add a link to an entire TextFrame, not just the text within the TextFrame. The link would link to a specific slide in the presentation. Here are the problems:
First, I can't add a link to an entire TextFrame so that when a user clicks anywhere in the TextFrame it will navigate to the url. I can only add a link to the text within the TextFrame. Am I missing this, or is it impossible?
Second, I can't get the links to work, especially the internal link. I need to be able to link to a specific slide within a presentation. I have tried passing the slide and the slideId, and it doesn't work either way. It shows a link but doesn't do anything when I click on it. When I couldn't get the internal link to work, I tried adding an external link. It didn't work either.
Does it make any difference that I'm using PowerPoint 2000?
Here's a piece of the code. tf is the TextFrame, lnk is a Link:
tf.Links.Clear();
tf.Paragraphs[0].Portions[0].Text =
dsPresentation.Tables[1].Rows[currentObjective]["FriendlyName"].ToString();
tf.Paragraphs[0].Portions[0].Text += ": " + slideStart[currentObjective];
lnk = tf.Links.AddLink();
lnk.SetInternalHyperlink(pres.Slides[3].SlideId);
lnk.Begin = 0;
lnk.End = tf.Paragraphs[0].Portions[0].Text.Length;
It compiles and runs, but it doesn't give me the results I'm expecting. Am I totally missing something here? Any input you can provide would be greatly appreciated.
-J