Powerpoint equivalent of Word Bookmarks? RRS feed

  • Question

  • So I have a VSTO addin for Word that calls a slow webservice to do some text processing and then the addin displays results to the users and allows them to mainpulate their document.  It uses Bookmarks to save locations of text ranges of certain type of data in the document to avoid calling web service every time they use right click context menu.

    I recently started looking into porting my addin to Powerpoint and trying to find a substitue for bookmarks.  I tried linking doc properties to content using a TextRange like so:

    docProps.Add("Property1", true, MsoDocProperties.msoPropertyTypeString, null, textRange);

    but it was gving me strange results.  When I read the property back out, my .LinkSource string was textRange's text and .Value was empty string.  When I do it manually create linked properties using Powerpoint's Advanced panel, everything works fine.  I'm not sure if I'm missing a step in ym code or doing something incorrectly.

    Or if there is another way in powerpoint to essentially make named text ranges.

    Any help would be appreciated.

    • Edited by Steve Buberl Saturday, January 4, 2014 12:12 AM Typo
    Saturday, January 4, 2014 12:11 AM

All replies

  • Hi Steve

    I highly recommend you ask this question in a forum where PowerPoint specialists congregate, as they'll best know what possibilities PowerPoint offers. There is no MSDN forum - most of the specialists hang out in the "Communities", even the programmers:


    Cindy Meister, VSTO/Word MVP, my blog

    Saturday, January 4, 2014 3:49 PM
  • I must have missed the Powerpoint forum.  Thanks I'll post over there.
    Monday, January 6, 2014 3:23 PM
  • I think this is a correct forum you post. There is PointPoint VSTO add-in.

    You should not port your Word add-in to PowerPoint but you can create a PowerPoint VSTO add-in.

    You can try to use a ActiveX control as a substitue for bookmark.

    Tuesday, January 7, 2014 11:39 AM
  • Hi Steve,

    The Word and PowerPoint Object Models are different. You can try to base your code on the Tags or Id properties for identifying your shapes.

    Tuesday, January 7, 2014 1:29 PM