包含vbado.net的词条( 九 )


If IO.File.Exists(FilePath) Then
IO.File.Delete(FilePath)End IfmPrjApp.FileSaveAs(FilePath, MSProject.PjFileFormat.pjMPP)End SubPublic Sub AddTask(ByVal TaskName As String, ByVal StartDate As String, ByVal FinishDate As String, Optional ByVal Resource As String = "")
mPrjApp.SelectTaskField(mRow, "名称")
mPrjApp.SetTaskField("名称", TaskName)
mPrjApp.SetTaskField("开始时间", StartDate)
mPrjApp.SetTaskField("完成时间", FinishDate)
mPrjApp.SetTaskField("资源名称", Resource)'这里的资源表示将任务分配给谁mRow = 1End SubPublic Sub Degrade()
mPrjApp.OutlineIndent(1)End SubPublic Sub Upgrade()
mPrjApp.OutlineOutdent(1)End SubPublic Sub Close()
mPrjApp.FileCloseAll(MSProject.PjSaveType.pjDoNotSave)
mPrjApp.Quit()End SubEnd Class该类使用例子(C#):
Project prj = new Project();
prj.NewProject("D:\Test\Test.mpp");
关于vbado.net和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息 , 记得收藏关注本站 。

推荐阅读