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.
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.