PPT: Shape.Name throws method not implemented exception

C

Cindy M.

Hi David,
I have a case where a Shape has a TextFrame which has a TextRange
which has Text - and it's all correct. But a call to Shape.Name on the
shape object throws an exception.

What's going on?
It would help some if you could show us the code you have working, up to
a point. In this case, especially, it's not clear which object you're
starting from. Nor do you go into any detail about what type of Shape is
involved or what Exception you're getting...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
J

Jialiang Ge [MSFT]

Hello Dave

A simple test on my side cannot reproduce the problem. As Cindy suggested,
would you please tell me the exception message you got from Shape.Name? How
are you using Shape.Name? Are you retrieving the Name value or setting the
property? If you are setting, a possible reason for the error is that, the
same name already exists in the current slide. Duplicated names are not
allowed as the MVP illustrates:
http://www.pptools.com/starterset/FAQ00036.htm

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
D

David Thielen

Hi;

It happens when I have a process that walks all shapes in the
presentation and in those shapes reads the text in each. If it finds a
problem in the text (for our tagging), it calls an event handler
passing the shape.

So the shape is not selected and may not be on the selected slide. But
it does have a TextRange that was accessed just before this occured.
And I am able to get the slide from the shape.Parent.

But the Name property throws an exception.

??? - thanks - dave



Hello Dave

A simple test on my side cannot reproduce the problem. As Cindy suggested,
would you please tell me the exception message you got from Shape.Name? How
are you using Shape.Name? Are you retrieving the Name value or setting the
property? If you are setting, a possible reason for the error is that, the
same name already exists in the current slide. Duplicated names are not
allowed as the MVP illustrates:
http://www.pptools.com/starterset/FAQ00036.htm

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
R

Richard

What's the exception message?

David Thielen said:
Hi;

It happens when I have a process that walks all shapes in the
presentation and in those shapes reads the text in each. If it finds a
problem in the text (for our tagging), it calls an event handler
passing the shape.

So the shape is not selected and may not be on the selected slide. But
it does have a TextRange that was accessed just before this occured.
And I am able to get the slide from the shape.Parent.

But the Name property throws an exception.

??? - thanks - dave






david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

I'm still not able to reproduce the problem with the given information.
Would you please tell me the exception message when you access the Name
property? I will search for the relevant report in our internal support DB
using the exception message as the keyword. If you have a small and
reproducible project and can send it to me, it's much more helpful.

Thanks
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top