Question about the drawing control

G

gunslingor

Let me ask. When i place a visio drawing control onto an access form, is
that called the application object, or, is the application object
something different? What is the difference between:

Dim vsoApp As Visio.Application
&
Dim vsoApp As DocumentControl0.Window.Application
&
Dim vsoApp As DocumentControl0.Document.Application
&
Why do the last two declaration require the middle window/document
parts for it to not report an error? What is the difference between all
three?
 
J

JuneTheSecond

Hi,

I also feel quite strange, and I don't know the true reason nor the true
difference.

First, "Dim vsoApp As Visio.Application" is not for Drawing Control, but for
regular Visio.

Phenomenologically, Drawing Control has essentially only 2 properties,
Document and Window. I don't know why Drawing Control does not have
Application property.
May be may be, if it has, the Application might indicates the application
that you are creating in VB or in other languages, but not Visio Application.
DocumentControl0.Window and DocumentControl0.Document return Visio object.
And then, I think DocumentControl0.Window.Application and
DocumentControl0.Document.Application return Visio Application, but not your
application.
 
G

gunslingor

I think that DocumentControl0.Window.Application and
DocumentControl0.Document.Application are really the same object. But
have also see
DocumentControl0.Document.Application.Document.OpenEx(....)

at least I am pretty sure it was OpenEX; the rest I am sure about

So whats the difference between:
DocumentControl0.Document.Application.Document
&
DocumentControl0.Document
&
DocumentControl0.Window.Application.Document (this one might giv
error)
&
Visio.document
&
Visio.application.document
 
D

Dieter Sternberg

DocumentControl0.Document.Application.Document.OpenEx(....)

This was
DocumentControl0.Document.Application.Documents.OpenEx(....)
----------------------------------------------^
wasn't it?
So the author has to get somehow access to the Documents collection to
open/add documents.

Since DocumentControl0.Document.Application returns a Visio.Application
object, I would never expect to get the OLE container application.
What values have the Application.ProcessID and
Application.WindowHandle32 properties?

Dieter
 
G

gunslingor

Something is funny with the code on this site. Open Ex and OpenEx ar
the same. I dont think that Application.ProcessID an
Application.WindowHandle32 will be allowed in a access vba file,
suspect. Still don't understand the difference.
 

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