Copy an entire page between 2 visio controls programmatically

A

ahmadka

Hi guys. Can someone tell me how can I copy an entire page from one visio
control to another visio control within the same application....

I know how to add pages to a visio control object, but I dont know how to
copy an entire page from one control to another....

help needed people...
 
J

Jacco

Hi there,

I've written a couple of utilities, one of which allows you to copy a
page within a document, and one that allows you to copy it to another
(open) document in Visio. They are part of a larger entity called
swipr (swipr.com, although the site is down currently), and are
available for download. All functionality, including the copy stuff,
is free and open source, so do with it what you like. There is also a
'set zoom level for document' in the utility set...

The copy functionality is also available as seperate items from
www.welie.com/visio

Hope this helps,
Jacco
 
A

ahmadka

Thanks for the link buddy, but that didnt help me out a lot, because of
various reasons:

-- The coding there is done in VB, not C#
-- There is no explanation available for the variable names that have been
used...

So the code is quite confusing at first look..

Isnt there any simpler guide available ?

Thanx anyway dude..
ahmadka
 
A

ahmadka

Well thanx, but I am looking forward to coding this thing myself (project
requirement) and not use external tools to get the job done....Can someone
pleeease post some code here, showing how to copy pages ( or all the
shapes/connectors on a page) between visio controls programmatically...?

Thanx in advance..
 
N

Nikolay Belyh

I am looking forward to coding this thing myself (project
requirement) and not use external tools to get the job done....
Can someone pleeease post some code here, showing how to copy pages ( or all
the shapes/connectors on a page) between visio controls programmatically...?

Wasn't you just saying that you are supposed to code all the things by
yourself? :)
So, I think the first part is just mutually exclusive with the second
part :)

In the references you were given by David and Jacco,
I belive there is all code (code!) you might need to accomplish your
task.
Please take a closer look at them.

Kind regards.
 
A

ahmadka

OK, well I had another look at that page, and yes, I have derived some code
from it that I could use....

The main reason why I originally posted that this code is not what I needed,
is because this code uses VB, whereas I am using C#...

I have written some test code, from which the problem now is, how do I
define a Selection object in C# ??

In VB, it is done like this:

Dim vsoSelection As Visio.Selection

What is the C# equivalent for this ??
 
A

ahmadka

Can someone please help me with this ? What is that C# equivalent for the
following VB variable definition:

Dim vsoSelection As Visio.Selection
 

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