Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Connectors

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ravi - 22 Jun 2005 06:23 GMT
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
Cindy M  -WordMVP- - 26 Jun 2005 11:05 GMT
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 :-)
Ravi - 30 Jun 2005 05:54 GMT
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

> Hi =?Utf-8?B?UmF2aQ==?=,
>
[quoted text clipped - 15 lines]
> This reply is posted in the Newsgroup; please post any follow
> question or reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 30 Jun 2005 17:10 GMT
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 :-)
Ravi - 01 Jul 2005 07:09 GMT
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

> Hi =?Utf-8?B?UmF2aQ==?=,
>
[quoted text clipped - 25 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 01 Jul 2005 09:30 GMT
Hi =?Utf-8?B?UmF2aQ==?=,

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

Almost certainly, the interface is not the same.

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 :-)
Ravi - 02 Jul 2005 06:48 GMT
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

> Hi =?Utf-8?B?UmF2aQ==?=,
>
[quoted text clipped - 10 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 02 Jul 2005 09:27 GMT
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.