Solved

CreateObject("Visio.Application","MyServer") failure - permission denied

Posted on 2001-07-25
2
1,051 Views
Last Modified: 2008-03-03
I'm running a visual basic program that calls createobject("Visio.Application").  Its purpose is to start a visio application so I can create a dynamic drawing.  I need to create the application (visio) on the server named in the 2nd parameter of createobject.  As I read it, you can basically run the visio application on the server itself.  This would prevent my client application from needing visio itself and would allow me to create the drawing on the server.  Any suggestions?
0
Comment
Question by:AntCorp
2 Comments
 
LVL 4

Accepted Solution

by:
VincentLawlor earned 100 total points
ID: 6320141
That's what the documentation says.

You can create an object on a remote networked computer by passing the name of the computer to the servername argument of CreateObject. That name is the same as the Machine Name portion of a share name: for a share named "\\\\MyServer\\Public," servername is "MyServer."

The following code returns the version number of an instance of Excel running on a remote computer named MyServer:

Dim xlApp As Object
Set xlApp = CreateObject("Excel.Application", "MyServer")
Debug.Print xlApp.Version

If the remote server doesn?t exist or is unavailable, a run-time error occurs.

You can check this out fairly easily do your create object on a machine without Visio. See does it stat an instance of Visio on that machine.

The bummer is you won't get a user interface for this as it's running on the other machine.

Vin.
0
 

Author Comment

by:AntCorp
ID: 7159412
Sorry, haven't logged on in a long time.

AntCorp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now