我正在努力想出一種簡明的方法來做我想像的很簡單的工作...我有一個簡單的現有PowerPoint演示文稿,其中包含一張幻燈片和一張圖像。我想用Open XML SDK(托管在.Net Core Web應用程序中)以編程方式打開它,并為此添加一個超鏈接,然后保存它...以便在PowerPoint中重新打開它時,可以控制并單擊圖像訪問鏈接。 using (var ppt = PresentationDocument.Open("powerpoint.pptx", true)) { var image = ppt.PresentationPart.SlideParts.First().ImageParts.First(); // Code to add hyperlink to image here - a bit like: // image.HyperLink = "http://somewebpage" ppt.Save(); }
- 1 回答
- 0 關注
- 149 瀏覽
添加回答
舉報
0/150
提交
取消