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") 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
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
.
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
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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.
|
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...
| |
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...
|
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.
|
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,
...
|
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 :...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |