Solved

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

Posted on 2001-07-25
2
1,054 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 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