0

I'm trying to access the dataSet for a project that I just created and published through MS Project 2007 client, however, it turns out I need the project Guid to access it programmatically.

Here`s the code I want to run, from the msdn website:

public SaveProjectInfoToXml(Guid projectUid, string filePathName)
{
    WebSvcProject.ProjectDataSet dsProject = 
        proj.ReadProject(projectUid, WebSvcProject.DataStoreEnum.PublishedStore);
    dsProject.WriteXml(filePathName);
}

Question is, How do I get the projectUid for the project Id like to access!? Why did microsoft decide to leave out such critical details? Also, I cant run ReadProjectList() and loop through all the projects, because my permissions aren`t high enough.

Thanks

4

1 回答 1

0

我解决了自己的问题

方法 ReadProjectList() 需要提升的权限才能使用。但是,要简单地获取服务器中所有可用项目的列表,应该使用项目 Web 服务中的方法 ReadProjectStatus(),如下所示:

ReadProjectStatus(Guid.Empty,WebSvcProject.DataStoreEnum.PublishedStore,String.Empty,0);

它将返回服务器上所有可用项目的数据集列表。

于 2014-06-26T13:32:52.320 回答