Opening a vss file in an ActiveX Visio2003

G

genc ymeri

Hi,
I have dropped an ActiveX Visio2003 in a C# form. I opened a vss (stencil
file) but the master names are not shown in the bottom of their icons.

How can I fix this ?

Thank You in advance.
 
M

Mai-lan [MS]

Hi, there: Are you using a Visio standard stencil? What method are you using
to open the stencil?

Thanks,
Mai-lan

Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

genc ymeri

Mai-lan said:
Hi, there: Are you using a Visio standard stencil? What method are you using
to open the stencil?

I'm opening a vss file as below :
this.axVSDrawing.Document.Application.Documents.OpenEx("C:\\Documents and
Settings\\gymeri\\My Documents\\qstWF.vss", (short)VisOpenSaveArgs.visOpenRO
+

(short)VisOpenSaveArgs.visOpenDocked);



What is the right method and its paramters to call ?

Thank You in advance
 
G

genc ymeri

Any answer on this ? As I said, I'm opening a stencil file and the master
show up without their names in the bottom (just like they do in MSVisio).
The method I called was the same with what SDK advice.

..........................................
this.axVSDrawing.Document.Application.Documents.OpenEx("C:\\Documents and
Settings\\gymeri\\My Documents\\qstWF.vss",
(short)VisOpenSaveArgs.visOpenRO + (short)VisOpenSaveArgs.visOpenDocked);
 
B

Bill K. [MSFT]

Right-click on the stencil title bar and pick View > Icons and Names.
The default user preference is "icons and names" when Visio is running stand
alone, and "icons only" when running in-place.

Hope this helps,

--
Bill K.
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

genc ymeri

Bill,
How can I do this programmatically ? I even tried to record a macro while
changing these stencil properties but somehow it does NOT record these
events while changing'em
 
B

Bill K. [MSFT]

drawingControl.Window.Application.DoCmd((short)VisUICmds.visCmdStenIconAndNa
me);

Hope this helps,
--
Bill K.
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

genc ymeri

Here we go :) :)

Bill,

Thanks a lot.



Bill K. said:
drawingControl.Window.Application.DoCmd((short)VisUICmds.visCmdStenIconAndNa
me);

Hope this helps,
--
Bill K.
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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