Connectors

R

Ravi

In Excel, there is a ConnectorFormat property in Shape object.
We did not find such object in Word API.
How to get the ConnectorFormat object from shape object?

Thanks
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UmF2aQ==?=,
In Excel, there is a ConnectorFormat property in Shape object.
We did not find such object in Word API.
How to get the ConnectorFormat object from shape object?
Whether and how Word supports connectors depends on the version
of Word. The Word 2003 (and possibly 2002) object model provides
the AddConnector method for objects in a DrawingCanvas. This
returns a Shape object, which you can manipulate as a shape.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8
2004)
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 :)
 
R

Ravi

Dear cindy,
We are trying to read an existing connector object from word
document, but the AddConnector method which you specifeid is used for
creating connector object.

Please specify the method to read connector object and then the connector
format object from the word document

with regards,
Ravi
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UmF2aQ==?=,
We are trying to read an existing connector object from word
document, but the AddConnector method which you specifeid is used for
creating connector object.

Please specify the method to read connector object and then the connector
format object from the word document
Dim shp as Word.Shape

Set shp = shapeInCanvas.AddConnector

Now format the connector same as you would any other Shape object. However,
in order to change to what it's connected I believe you'd have to delete it
and recreate a new Connector.

It's important to realize that everything to do with the Shapes collection
is not native to Word. It's coming from an outside library, used by all
Office applications. And some things simply aren't exposed the way we'd
like...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
R

Ravi

Dear cindy,
As we need not know the parameters of the existing connector object, we cant
recreate the connector object.

Do you think that the word API does not support reading connector object as
other Excel API etc?

With regards,
ravi
 
R

Ravi

Dear Cindy,

Is there any other method other than AddConnector for retrieving the
connector object information from the word document.

The problem is we have a picture object contaning Connectors embedded in
it.The
thing is we have to retrieve the connector object information Programitically.

Please kindly understand our problem and respond immediately.

With Regards,
Ravi

If it's not present
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UmF2aQ==?=,
Please kindly understand our problem and respond immediately.
You do realize you're in a peer-to-peer support group. All
volunteers; no one is paid or required to answer your
questions. One can make allowances for different cultures, but
if you want help from a group like this, it's better to not
make your request sound like a demand.
Is there any other method other than AddConnector for retrieving the
connector object information from the word document.
It's a Shape. You can loop through the Shapes collection (or
CanvasItems if this is a drawing canvas) and pick up any
individual item. But as far as I can tell, Word doesn't give
you any way to even identify that you're dealing with a
Connector, as opposed to any other kind of shape. It appears to
return an AutoShapeType of -2 (msoShapeMixed), and that's it.

You may need to turn to the official Microsoft Support to
pursue this. The only other suggestion I can offer is that you
copy the stuff into Excel, analyze it there where the tools
are available, then copy it back into Word.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8
2004)
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 :)
 

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