?
Solved

Converting InlineShape to Shape and back

Posted on 2005-03-27
4
Medium Priority
?
927 Views
Last Modified: 2012-06-21
I want to tag InlineShapes with a unique identifier.  One way to do this is to convert the InlineShape to a Shape, set the Name property on the Shape, and then convert back to an InlineShape.  Then to get the key associated with an InlineShape, repeat the steps:  convert to a Shape, get the Name, and convert back to InlineShape.

My question is how much vulnerability does this introduce?  My sense is that there's a risk of an InlineShape with complex formatting, situated in a particular way inside of a table or frame, being reformatted or repositioned during this back and forth conversion.

jkavx
0
Comment
Question by:jkavx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Expert Comment

by:aflockhart
ID: 13642332
I've played around with this a bit, and found the process of conversion was more robust than I expected.  Not sure I would want to bet the farm on it though ...

An alternative might be to borrow the "AlternativeText" property and use this to record an ID.
0
 

Expert Comment

by:George7a
ID: 13642616
Hello jkavx

I have done this once using "ConvertToInlineShape" & " ConvertToShape "


this link has some explaination

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/office97/html/output/F1/D4/S5A988.asp

Happy Easter,

- George
0
 

Author Comment

by:jkavx
ID: 13650043

I've thought about using AlternativeText, but this can be edited in FormatPicture/Web.  Is there any way to hide this Web tab, or disable it so the Alternative Text can't be changed.
0
 
LVL 17

Accepted Solution

by:
aflockhart earned 375 total points
ID: 13650561
The only way I know to do this is by protecting the document (or sections of the document) but this also prevents lots of other changes as well.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question