Micosoft Projects 2002

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Does anyone have any idea is there a way to access the microsoft projects 2002 from dot net. Any links or content would be of help

Than
Prasad
 
I'm sure others will provide more detailed references. Here is some code
that I use.

To open the application:
Public pjApp As New MSProject.Application

Public pjPlan As MSProject.Projects

Public pjTask As MSProject.Task

pjApp = CreateObject("MSProject.Application")

pjApp.Visible = False


To close the application:
pjApp.Quit()

System.Runtime.InteropServices.Marshal.ReleaseComObject(pjApp)

pjApp = Nothing


To open a file:
Dim lpjplan As Boolean

lpjplan = pjApp.FileOpen("filename", True, , , , , True, , , , ,
MSProject.PjPoolOpen.pjDoNotOpenPool, , , True)

To save/close a file:
pjApp.FileSaveAs("Filename")

pjApp.FileCloseAll(MSProject.PjSaveType.pjDoNotSave)


Prasad said:
Hi,
Does anyone have any idea is there a way to access the microsoft
projects 2002 from dot net. Any links or content would be of help.
 
Back
Top