Solved

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

Posted on 2001-07-25
2
1,045 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
Comment Utility
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
Comment Utility
Sorry, haven't logged on in a long time.

AntCorp
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now