Markku Partanen was telling us:
Markku Partanen nous racontait que :
> Well, database, data and templates exits but they might not be error
> free also users are allowed to edit the templates.
> I doubth that I'll be able to cover for all possible error situations
> that might raise so that's why I'm trying to find a way to make sure
> my application doesn't hang.
I do not think you can suppress that dialog.
I would do thorough testing to see what kind of errors can occur and code
accordingly.
Of course, if you open up the template to users, anything can happen... This
is why in cases like this I would not allow the user to edit that template.
I guess you can have generic error trapping that would automatically close
Word as soon as an error is thrown, but it is still possible that some
serious errors generate the Crash dialog and wait for user input before your
error trapping code has a chance to execute...
If this is a serious issue, I would revise the whole project and try to
eliminate the user interaction from the template so as to make sure that no
errors can be generated due to users playing witn the template.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Markku Partanen - 14 Oct 2005 22:00 GMT
Ok, would it be possible to send key strokes through the Word.Application
object to the crash dialog or getting the process id for the process running
Word?
/Markku
> Markku Partanen was telling us:
> Markku Partanen nous racontait que :
[quoted text clipped - 21 lines]
> eliminate the user interaction from the template so as to make sure that no
> errors can be generated due to users playing witn the template.
Jean-Guy Marcil - 14 Oct 2005 23:15 GMT
Markku Partanen was telling us:
Markku Partanen nous racontait que :
> Ok, would it be possible to send key strokes through the
Never tried that... I believe that if Word is crashed, no code will be able
to run...
That is what I have been trying to say... you have to prevent Word from
crashing in the first place.
> Word.Application object to the crash dialog or getting the process id
> for the process running Word?
There are some API calls that would do that, but here I do not know how to
do that. Try Google or wait for some one to chime in!

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Markku Partanen - 15 Oct 2005 15:36 GMT
Oki thanks for engaging
/Markku
> Markku Partanen was telling us:
> Markku Partanen nous racontait que :
[quoted text clipped - 12 lines]
> There are some API calls that would do that, but here I do not know how to
> do that. Try Google or wait for some one to chime in!