Bug in Microsoft Vision 2003 with Service Pack 1

K

kathir@vsea

Hi,

We have a Visio plug-in application to manipulate our Visio drawings. Visio
crashes while we are calling Application.Documents.OpenEx(<filename>,
visOpenCopy) to open the copy of a file. We are unable to proceed with usage
of our plug-in application. Please provide us the solution.

If you install the latest service pack 1 (SP1) for Office 2007 Visio crashes
when running the below code snippet for opening the copy of document using
Documents.OpenEx(<stencilname>, visOpenCopy).

Code Snippet:

Dim appVisio As Object
Dim BlankStencilObj As Visio.Document 'Blank stencil created using Visio
2003
Set appVisio = GetObject(, "visio.application")
Set BlankStencilObj = appVisio.Documents.OpenEx("BLANKSTENCIL.VSS",
visOpenCopy)

If I am trying to achieve the same action using
Document.AddEx(<Stencilname>) also crashes the Visio.

Set BlankStencilObj = appVisio.Documents.AddEx("BLANKSTENCIL.VSS",
visMSDefault)

This does not happen when the Service Pack 1 is not installed.
 
J

JuneTheSecond

"BLANKSTENCIL.VSS", is really exists in accessible place?
And, how did you built your plug-in application ?
With VB in Visual Studi 2003?
 
K

kathir@vsea

Sorry the problem occurs in Visio 2007 OpenEx(<stencilname>, visOpenCopy).

This is supported by Visio 2007 version, but not in Visio 2007 SP1.
 
B

Barb Way

Is your solution developed in Visual Studio or in VBA? If in VBA, can you
provide a few sample lines to show the problem for us to reproduce? Also,
it would be great to know a little more about why you are opening the
stencil as Copy but not Docked.

Using this line of code, I was able to open a docked copy of a stencil in
my current drawing on Visio 2007 (Pro) SP1:
Documents.OpenEx "Basic_U.vss", visOpenDocked + visOpenCopy

So it appears to be working in my test. Perhaps a little more info will
help us to see your issue.


Barb Way
Product Support - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 
B

Barb Way

By the way - you don't need to open the Stencil using the visOpenCopy flag
unless you need to edit it. If you are just opening the stencil to use in
a template / drawing, the visOpenDocked flag works best.

Barb Way
Product Support - Visio
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