Am developing an ad-din for power Point , for that i need to insert a image from Local disk or need to paste the image from clipboard to power point using c#.But here i was able to do both the functions without adding hyper-link,But i need the hyper-link to be also added.
used to insert a picture to PPT:
slide.Shapes.AddPicture(path, Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue, shape.Left, shape.Top, shape.Width, shape.Height);
Used to paste a picture from clip Board:
slide.Shapes.Paste();
both the above process are working.but how to insert an image with hyper-link?Been struck here for past 2 days.
PPT.Shape shap1= slide.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal, 50,50,250,50);
PPT.TextRange objTextRng;
objTextRng = shap1.TextFrame.TextRange;
objTextRng.Text = txt;
objTextRng.ActionSettings[PPT.PpMouseActivation.ppMouseClick].Hyperlink.Address = @"http://google.com";
in the above mentioned way am inserting hyper-link to the text in PPT , Likewise i need to add hyper-link to am image in PPT. Thanks