Creating a project and adding tasks.

F

FR

Hi,

I'm trying to create a new project and add some tasks with duration to it in
project 2000 using the project object model. I'm not having much luck. I'm
using delphi so I'm just going to list the steps I'm taking:

1) Open project (create an instance of MSProject)
2) Set PromptForSummaryInfo to false
3) Add a project and activate it so it is the active project
4) Change project title
so far so good.
I add a task by calling Tasks.add with the first parm being the name of the
task and second being empty.
This doesn't seem to work as no tasks are added to the project.

Also when I call FileSaveAs I get varying errors. The only params I specify
for this call are the name of the file and the format which is pjMPP.

Any help, especially any code snippet or any article/site that talks about
something similar is greatly appriciated.

TIA,

FR
 

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