Accessing Project property sheets via the Interop library

J

jsvazic

Hi,

I'm using the .NET interop library for the Project client to write an
application to manipulate the project tasks, etc. What I want to do is
to have the end user place some variables in the property sheets for my
application to read (these are not things you would change often, so
popping up a dialog each time isn't ideal). When I look at the
library, I can see that I can get a Project object, from which I can
access the CustomDocumentProperties property, but this is just an
Object, that I can see is a System.__ComObject, not something
particularly helpful to me.

Can anyone help me out please?
 
E

Ed Morrison

If you want to reference the standard Project properties such as author or
subject use Project.BuiltinDocumentProperties("author") or
Project.BuiltinDocumentProperties("title").

If you are creating a custom property on the project's property page, use
ThisProject.CustomDocumentProperties("MyVariable") where MyVariable is the
name of the custom variable you have created in the plan.

If you are using Project Server, use custom enterprise codes as they are
easier to read in the database.
 
M

mobj

Hi:

I need to auto update some data from other application system, but PDS
can't do it, so I create a MS Project COM object to open\modi\save the
project which in MS Project Server 2003.

When I open the project, I only Konw FileOpen function, but this
function only can open the .mpp file in local, or open project in database
with ODBC. When I create a ODBC DSN, I can Open the project, but the project
change to No-Enterprise project, and all resources in this project change to
local resources.

How can I open project which in MS Project Server 2003 with MS Project
COM object?

Can anyone help me out please?

Mo Binjiang
2005-6-24
 
E

Ed Morrison

To open an Enterprise project in the database, use FileOpen
"<>\ProjectName.published".
 

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