Reputation: 1
I want to dynamically add the author's name for each comment in PowerPoint with an office 365 subscription. I have tried the below code and it's working fine with PowerPoint 2016. But when I tried to add a comment in PowerPoint with office 365 login, it always add a comment with login user
string timestamp = System.DateTime.Now.ToString("yyyyMMddHHmmssFFF") + "_" + subcategoryId;
Microsoft.Office.Interop.PowerPoint.TextRange rng = Globals.ThisAddIn.Application.ActiveWindow.Selection.TextRange;
Microsoft.Office.Interop.PowerPoint.Comment comment = Globals.ThisAddIn.Application.ActiveWindow.Selection.SlideRange.Comments.Add(900, 600, timestamp, "", text);
Upvotes: 0
Views: 94