Copy Paste Weird behaviour

S

Satish Kumar

Hi,
Please help me. I am stuck up with a problem
I am using Visio 2003 and C#.
I have a requirement that I need to copy and paste a set of shapes currently
on the page and after pasting, I need to get all the new shapes pasted and
need to change some values in the shape sheet for all those shapes. Now I am
facing a problem. After pasting the pasted shapes are not highlighted and
hence wen I say ActiveWindow.Selection I am not getting all the shapes that
are currently pasted. It behaves weirdly giving me a subset of total shapes
in the selection. I handled the SelectionAdded event but its not fired when
I paste on to the page.
I found the same behaviour while working Manually with Visio. I selected a
set of 7 shapes and pasted them. The selection after pasting is not same
everytime. Some times it selects 3 shapes, some times 4 and sometimes none.

can anybody please help me how to overcome my problem?
 
M

Michel LAPLANE

Have you try to use the shapeadded event and test that you are really in a
paste operation with the IsInScope Application property ?
 

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