how to hide stencil view with Visio 2003 and automation

L

L.A.Marco

I found code to open a stencil (see below) but how can I
hide a stencil window programmatically?

I'm using C#


-----
string stencilPath = Path.Combine
( Application.StartupPath, @"Sample Office
Furniture.vss" );

try
{
VisStencil =
visDocuments.OpenEx( stencilPath,
(short)
Visio.VisOpenSaveArgs.visOpenRO
+ (short)
Visio.VisOpenSaveArgs.visOpenHidden
+ (short)
Visio.VisOpenSaveArgs.visOpenMinimized



+ (short)
Visio.VisOpenSaveArgs.visOpenNoWorkspace
);
}
catch (COMException exp)
{
MessageBox.Show( "Error
Loading Stencil: " + stencilPath + exp.Message);
throw exp;
}
 

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