How do I scale the shape that I add to a drawing through Visio SDK

A

ahmadka

Hi guys. This is my first thread here, so please help me out. I am currently
working a project, for which I am using the Visio Drawing Control for the
first time. My question is this:

I can add shapes to a drawing page in the visio drawing control, by using
the Drop command. But how do I resize/scale this shape ? I want to be able to
scale down the shape by a given ratio, when the need arises.

Please tell me how I can do this. Thanks.
 
A

Al Edlund

Your question can be looked at as two different issues, that of scale (size
logically remains the same, the image is smaller) or change the size of the
object. To change the scale you would work with the pagesheet object, to
change the size you work with the shapesheet of the object. You might want
to check out the visio sdk from msdn. You might also want to check over
here,
http://msdn2.microsoft.com/en-us/library/aa201733(office.10).aspx
al
 
A

ahmadka

Thanks for the reply....OK, I checked out the MSDN link that you mentioned
earlier...Its written for the Office 10 (Office XP) SDK, whereas I am using
the Office 12 (Office 2007) SDK...so will there be any difference between the
two ?
 
A

Al Edlund

there is a v2007 sdk also available, which includes new functions that
support v2007 data. The M($) Visio document is fine for what you are looking
to do.
al
 
A

ahmadka

OK, I had a look at that page....all I see there are general concepts
regarding scaling of drawing,etc.. I dont see any coding functions/examples
there ...
 

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