SCR v.s. Documents.OpenEx()

G

genc ymeri

Hi,
1. Reading MSVisio SDK it is a sample how to open e Visio document. Method
used Documents.OpenEX().
Results : I open it sucessfully the stencil file but not the document. (It
doesn't show up)

2. Reading the article "Programming with MS Office Visio 2003 ActiveX
control" it recommands to use axDrawing.SCR property to load a document.
Here it works fine for doucments but not for stencil files.

Thanks in advanced for any tip.

Genc Ymeri.

PS:
More confusing is that it seems that no one knows how these things are
supposed to work. For every question I post the luckest case I get is when
an answer comes after 3+ days asking me what method I used without telling
what I'm suppose to use.............

Is this ng based completely on vulnetary work or Microsoft is giving kind of
WallMart product support ?
 
M

Mai-lan [MS]

If you are using the Visio ActiveX control, use SRC to open the document or
template. The document will load with the stencil displayed in the stencil
if the document was saved with the stencil open. You can use the drawing
control's window or document property to get to the Visio
application.documents object to use OpenEx to open a stencil file in the
control as well.

The Microsoft public newsgroups are not product support. The Microsoft
public newsgroups are a community forum where users and developers can post
questions and provide answers to other members of the community. Members of
the Microsoft product groups, Microsoft MVPs, and other MS users/developers
freely participate because we want to help others in the community. If you
are not getting the results that you are looking for from the newsgroups,
you can always call Microsoft Product support or contact Microsoft Premier
Services for official product and development support.

Mai-lan
Visio
Microsoft Corp.
 

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