connect.toPart property

Joined
Sep 9, 2011
Messages
1
Reaction score
0
Hi all,

I wrote a java based Code to transcode Visio file to another file format. I can reproduce shapes, pages and connections. But, I don't know at wich pin of a shape a connection is plugged. I supposed I'm not using the toPart property as well.
I hope somebody can help me.
At this moment I wrote that:


public int getToPart() {
int[] rgdispid = ole.getIDsOfNames(new String[] { "toPart"});
if (rgdispid == null)
return 0;
int id = rgdispid[0];
Variant c = ole.getProperty(id);
return c.getInt();
}

with this code, i get numbers that not corresponds to what I see in my Visio file...
For exemple it tells me that that an input is connected to the 2nd row of my shape but in facts, it's connected to the 3rd.

thanks in advance,
 

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