|
|
|
date: Sat, 23 Aug 2008 00:42:00 -0700 (PDT),
group: microsoft.public.project.developer
back
Re: Accessing Inserted Project Info
In article
,
snkharvi@gmail.com wrote:
> Hi All,
> I am developing an addin to MS Project. The addin collects active
> project info from MS Project and creates XML.
> My question is when a project is inserted(with link option) in
> another project, how to access following info of a inserted project? I
> need to collect info of
> 1. Project Summary Info
> 2. Tasks
> 3. Resources
> 4. Resources Assignments
>
> I want to collect these info without opening the inserted project
> separately.
> I see that when we say Save As ".xml" in MS Project, MS Project saves
> all these info without opening the inserted project separately.
>
> Thanks in advance,
snkharvi,
When you say, "... inserted (with link option)...", I hope you mean
Insert/Project and not Insert/Hyperlink or Edit/Paste Special. The
former will provide a pointer in the master project to each individual
subproject. The latter two will set up a direct link that is very prone
to corruption.
As far as obtaining the subproject information you want, the insertion
point summary line in the master project provides an all up summary of
that subproject. For the other items on your list, the following general
syntax should get you started.
ActiveProject.Subprojects(1).SourceProject.Tasks(1).[property]
or
ActiveProject.Subprojects(1).SourceProject.Resources(1).[property]
The assignments for either construct follows the same general syntax.
Hope this helps.
John
Project MVP
date: Sat, 23 Aug 2008 08:33:53 -0700
author: John
|
|