Setting width/height of embedded Visio ActiveX control

K

Ken Soh

Hi all,

Can anyone tell me how can I assign the width and height of a Visio
ActiveX control programmatically using Javascript and/or DHTML?

I've written a web part that contains an embedded Visio ActiveX control
to view technical illustrations that are based on generated as Visio
diagrams. I've got the web part working in a functional state. The
only problem is I've not been able to find a way to assign the desired
height and width for the Visio ActiveX control. Simply assigning the
width and height using the width and height attribute in the <OBJECT>
element does not work like it does for the free Visio Viewer ActiveX
control.

Thanks,
Ken
 
L

LarryF

The AxDrawingControl doesn't have a Width or Height property. It does
have a Size property with a Width and Height, so maybe you can set the
Size.Width and Size.Height. I put the drawing control inside a form or
panel and set the drawing control's Dock property to DockStyle.Fill.
Then setting the size of the parent causes the drawing control to set
its own Size property correctly. But I always use C#, so I can't give
you the specific code.

HTH.
 

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