ProjectBeforePrint Event
Occurs before a project is printed.
Syntax
Private Sub object**_ProjectBeforePrint(ByVal** pj As MSProject.Project, Cancel As Boolean)
object An object of type Application declared with events in a class module. For more information, see Using events with the Application object.
pj The project to be printed.
Cancel False when the event occurs. If the event procedure sets this argument to True, the project will not be printed.
Remarks
Project events do not occur when the project is embedded in another document or application.
Applies to | Application Object
See Also | BeforePrint Event | ProjectBeforePrint2 Event