通过PSI计算项目成本所需的代码 [英] Code required for calculate project Cost through PSI

查看:89
本文介绍了通过PSI计算项目成本所需的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我希望通过PSI代码自动计算项目成本。有时当我更改资源费率时,费用字段不会按照新费率重新计算,因此我必须使用Project Professional
功能区上的CALCULATE PROJECT按钮。

I want that the cost of the project should be calculated automatically through PSI code. Sometimes when i change the resource rate then the cost field doesn't recalculated as per the new rate so i have to use the CALCULATE PROJECT button on the Project Professional Ribbon.

我希望通过使用代码自动执行此操作。任何人都可以帮助我或建议我这样做。

I want that this action should automatically be performed by using code. Can anyone help me or suggest me in doing so.

问候

推荐答案

Hello Maaz,



您需要在Project功能区上创建一个实际计算项目的按钮。

使用以下文章创建功能区上的按钮:

http://msdn.microsoft.com/en-us/library/ee767705(v = office.14).aspx



您需要在MS project&中调用Application对象。使用Calculate方法。

http:// msdn。 microsoft.com/en-us/library/ff865152.aspx

使用以下方法计算活动项目:

http://msdn.microsoft.com/en-us/library/ff861674.aspx



使用以下方法计算MS项目窗口中的所有打开项目:

http://msdn.microsoft.com/en-us/library/ff861067.aspx

Use the below method which just calculate the active project:
http://msdn.microsoft.com/en-us/library/ff861674.aspx

Use the below method which calculates the all open project in MS project window:
http://msdn.microsoft.com/en-us/library/ff861067.aspx

希望有所帮助。

 


这篇关于通过PSI计算项目成本所需的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆