1

I have created a project to create a Microsoft Project file (.mpp) using C#. Now I want to change the column header text programmatically. By default the columns names are Task Name, Duration, Start, End, etc.

I want to change the Task Name column header text to some other value. In other words, instead of displaying Task Name I want Description.

Can anybody help me with this?

1
  • 1
    What API are you using to create the MPP file?
    – Sneal
    Jan 3, 2012 at 6:43

1 Answer 1

1
Microsoft.Office.Interop.MSProject.ApplicationClass projectApp =new new Microsoft.Office.Interop.MSProject.ApplicationClass();

....Do some stuff fro opeing a new file etc...

projectApp.TableEdit("Entry", true, false, Type.Missing, "Text3", "Text3", "Text3", "Schedule Name",20, Microsoft.Office.Interop.MSProject.PjAlignment.pjLeft,
                    true, true, Type.Missing, Type.Missing,1 , Type.Missing, Type.Missing, Type.Missing);
projectApp.TableApply("Entry");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.