Application.ProjectBeforePublish Event
Project Developer Reference |
Occurs before a Publish operation is placed on the server queue. The ProjectBeforePublish event can be cancelled. Microsoft Office Project Professional 2007 only.
Syntax
expression.ProjectBeforePublish(pj, Cancel)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
pj | Required | Project | Project object. |
Cancel | Required | Boolean | True to cancel the Publish job. |
Return Value
Nothing
Remarks
The ProjectBeforePublish event is commonly used to determine whether certain conditions are satisfied and to cancel publishing if the conditions are not met.
See Also