How to get Column Title?

K

Kenneth

Is it possible from .NET application to load a .mpp-file at get the Title of
a certain column?

Here's how I'd like it to work:

ApplicationClass projectApp = new ApplicationClass();
projectApp.AppMaximize();
projectApp.FileOpen(@"MyFile.mpp", ... other variables here... );
Project project = projectApp.ActiveProject;
string title = project.GetFieldTitle(PjField.pjTaskText20); // <--
this line won't work :(

What I'd like to get is the text "City" if that's what a user has changed
the title of the column with Field name Text20...

Regards,
Kenneth
 
B

Brian Tkatch

Is it possible from .NET application to load a .mpp-file at get the Title of
a certain column?

Here's how I'd like it to work:

ApplicationClass projectApp = new ApplicationClass();
projectApp.AppMaximize();
projectApp.FileOpen(@"MyFile.mpp", ... other variables here... );
Project project = projectApp.ActiveProject;
string title = project.GetFieldTitle(PjField.pjTaskText20); // <--
this line won't work :(

What I'd like to get is the text "City" if that's what a user has changed
the title of the column with Field name Text20...

Regards,
Kenneth

I have never done this before. Do you have access to a Project Server
database? Because there is a TABLE that stores that information.

B.
 
K

Kenneth

Unfortunately, the program will have to open a .mpp file (Project file) and
not access a Project Server database...

Regards,
Kenneth
 

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