?
Solved

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

Posted on 2001-07-25
2
Medium Priority
?
1,062 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
VincentLawlor earned 400 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

752 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