Hi Monks - Have any of you automated MSProject using Win32::OLE? In particular, have you been able to do GetObject on projects that are saved within Project databases? If a standalone Project file is "bar.mpp", then a Project database can contain several projects: "foo.mpd" will have within it "bar.mpp", "bar2.mpp", etc. How do I access projects within a database?
The following code gives a "No such file or directory" error. (Create the directory, database, and file first!)
use strict;
use Win32::OLE;
my $proj = "<C:\mydir\proj.mpd>\proj.mpp";
my $Object = Win32::OLE->GetObject( $proj ) || die $!;
Many thanks.