473,569 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open Existing MS Project File

It must be simple, but how do I open an existing MS
Project file? I've tried

Dim Proj as MSProject.Proje ct
Proj = CreateObject("M SProject.Applic ation")
Proj.FileOpen(" D:\Path\MyExist ingProjectFile. mpp")

Nov 20 '05 #1
3 9497
Hi Joe,

And it failed in what way, exactly?

Do you simply want to launch MSProject or do you want control it through
Automation?

Regards,
Fergus
Nov 20 '05 #2
When attempting to execute the command

Proj = CreateObject("M SProject.Applic ation")

the following runtime error message was received.

"An unhandled exception of
type 'System.Invalid CastException' occurred in
MyProg.exe. Additional information: Specified cast is not
valid."

I take the error message to mean "MSProject.Appl ication"
is incorrect and another text string is required to
create a Microsoft Project project/application.

Need to know how to create the Microsoft Project object
(whether it is a project or an application) and then open
an existing Microsoft Project file.
-----Original Message-----
Hi Joe,

And it failed in what way, exactly?

Do you simply want to launch MSProject or do you want control it throughAutomation?

Regards,
Fergus
.

Nov 20 '05 #3
Found an answer! The following syntax worked:

Dim myProj as MSProject.Proje ct
myProj = GetObject("c:\T est.mpp")
-----Original Message-----
Hi Joe,

And it failed in what way, exactly?

Do you simply want to launch MSProject or do you want control it throughAutomation?

Regards,
Fergus
.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2458
by: Erich | last post by:
Hello! I didnt find this error in the MS documentation, but struggling with it since a few days. Before I lost all my hope, let me ask you for a hint on that, so I might come out of that dilemma: I want to open and work with a project, distributed as open source. I downloaded the whole source (C#) and upped it to my webserver. I want to...
0
2366
by: KevinGravelle | last post by:
Hello, I am running an Apache web server and my httpd configuration file is utilizing the aspdotnet_module in order to run an ASP.NET application. Whenever I try and open my existing web project, I get the error message: "Unable to get the project file from the Web server. Unable to open project 'WebApplication1'. The file path...
5
7757
by: Kevin Buchan | last post by:
I came in today and tried to edit a project that I was working with, locally, at the tail end of last week. This web project was created, hosted, and only edited locally. I truly cannot remember anything that I installed/changed on my workstation that could have goofed up my IIS, but I simply cannot get VS 2003 to be able to open an...
2
2470
by: ed d | last post by:
Hi, When I try to create a new web project, or "add existing project from web" or "open from source control" i'm prompted for a URL and type in a virtual directory. -- with "add project from web" i just get a file dialog box in "my documents" and browsing to the right project folder doesn't work.
4
4039
by: g4356 | last post by:
Hi, A new baby question: I downloaded a dot net project and saved it to my local disk. When I tried to open this project, a message popped up: "Unable to open web project "test/myfirstweb"/ The file path "D:\dnet\webproj\myfirstweb\home" does not correspond to the URL 'http://localhost:/test/myfirstweb'. The two need to map to the same...
0
1537
by: Houssein | last post by:
Hello i can create new application but i cannot open the practice files for the book microsoft asp.net programing with microsoft c# .net that i had download from microsoft website i get the following msg: Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the...
1
1660
by: ruthboaz | last post by:
Hi, How to open a Project file from an event or when a button is clicked. Thanks and Regards, Ruth.
4
2973
by: student491 | last post by:
Hello, i tried to open existNg Excel file by using follow metho bt it give error ... that this file doestnt exist or path is incorrect........ wb = ThisApplication.Workbooks.Open(paramWorkbookPath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, ...
0
3826
by: LinsSoftware | last post by:
1. Locate the Form which is a container for multiple-document interface (MDI) child forms. Change its base class from Form to LinsUI.FlexMDIForm. For example, if MyMDIForm class is your MDI container, // The old code public partial class MyMDIForm : Form { } // The new code using LinsUI; public partial class MyMDIForm :...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.