Worked before, fails now

B

B. Chernick

I have been trying to understand the basics of Project interop through Dot
Net 2.0 (VB) A few days ago I wrote an ultra-simple demo program that did
little more than create an instance of Project 2003 and then load a project
from SQL Server.

Here are the key lines:
Private Const QsMSProjectODBC = "MSProject.odbc"
Private aApp As Microsoft.Office.Interop.MSProject.Application
aApp = New Microsoft.Office.Interop.MSProject.Application
aApp.FileOpen(sFullName, False, , , , , , , , QsMSProjectODBC)

where sFullName = "<MicroScheduleProjectsLocal>\InitSchedule"
(I have verified that both the DSN and the Project Name exist.)

Now it's failing on FileOpen with an error message of 'The argument value is
not valid'. I repeat, this worked a few days ago.
 
B

B. Chernick

Let's cancel this question for now. When I wrote this I did not realize that
Interop loads the most recent install of Project. This code works with
Project 2000.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top