How to display a “Publish Project Cancelled†Information in a MessageBox?

M

med111

How to display a “Publish Project Cancelled†Information ina
MessageBox?

In Microsoft office project professional 2007, When a Job (Project
Save, Project Publish) is completed or cancelled, a message is
displayed in the status Bar (in the bottom)


In the case when a project manager publishes his project (File
Publish…), but the publishing of its project is cancelled in the
server, a little information is displayed in the status bar.
If the project manager does not read what’s writing in the status Bar,
he will think that his project is successfully publishing (something
obviously wrong!). I want to display this information in a better
way.


I want that a similar information will be displayed in a message Box
(as a warning or as an error) indicating that a job (Project Save,
Project Publish) is cancelled, failed…So the user is obliged to read
the message and must click the ok bottom (in the message Box) to
continue his work.

To do this, I tried to develop a VBA event handler which will occur
when a job is cancelled. But, I didn’t find the appropriate event.
For example, there is an event Application.JobCompleted which is
declared like this:

Private Sub App_JobCompleted(ByVal bstrName As String, ByVal
bstrprojGuid As String, ByVal bstrjobGuid As String, ByVal jobType As
Long, ByVal lResult As Long)

I have tested this event. I find that it takes place when a Publish
Project is completed, but it is not executed when Publish Project is
cancelled!

I am asking if there is another event more appropriate, or if there is
another way to do it?
 
D

Dale Howard [MVP]

med111 --

Please post this message in the microsoft.public.project.developer
newsgroup, as you are more likely to get an answer in that group. Hope this
helps.





How to display a "Publish Project Cancelled" Information in a
MessageBox?

In Microsoft office project professional 2007, When a Job (Project
Save, Project Publish) is completed or cancelled, a message is
displayed in the status Bar (in the bottom)


In the case when a project manager publishes his project (File?
Publish.), but the publishing of its project is cancelled in the
server, a little information is displayed in the status bar.
If the project manager does not read what's writing in the status Bar,
he will think that his project is successfully publishing (something
obviously wrong!). I want to display this information in a better
way.


I want that a similar information will be displayed in a message Box
(as a warning or as an error) indicating that a job (Project Save,
Project Publish) is cancelled, failed.So the user is obliged to read
the message and must click the ok bottom (in the message Box) to
continue his work.

To do this, I tried to develop a VBA event handler which will occur
when a job is cancelled. But, I didn't find the appropriate event.
For example, there is an event Application.JobCompleted which is
declared like this:

Private Sub App_JobCompleted(ByVal bstrName As String, ByVal
bstrprojGuid As String, ByVal bstrjobGuid As String, ByVal jobType As
Long, ByVal lResult As Long)

I have tested this event. I find that it takes place when a Publish
Project is completed, but it is not executed when Publish Project is
cancelled!

I am asking if there is another event more appropriate, or if there is
another way to do it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top