• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1920
  • Last Modified:

Automation of MS Project from C# - How can I call DurationFormat?

I've got some VBA code I'm porting to C#, and it calls DurationFormat.  For example,

Print #hOut, aTask.ID & "," & Quote(aTask.Name) & "," & aTask.PercentComplete & "%" _
                & "," & Quote(aTask.ResourceNames) & "," & DurationFormat(aTask.Duration, pjDays) _
                & "," & aTask.Start & "," & aTask.Finish

How can I call DurationFormat() from C#?
I found solutions using MS Project 2007, but I'm still using MS Project 2003.
Any suggestions?
0
steranka
Asked:
steranka
1 Solution
 
puppydogbuddyCommented:
See this link for the 2003 syntax:
              http://msdn2.microsoft.com/en-us/library/aa194180(office.11).aspx
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now