N
Nick Radov
We're using MS Word XP as part of a VB application that
processes large batches of documents. On a couple of
occasions Word has crashed while opening a document. There
is nothing really wrong with the document, and if you shut
down Word and reopen it then it doesn't crash again. The
real problem is that when Word reopens the same document
that it crashed on before, it displays a dialog box to ask
the user whether you really want to open a possibly bad
document.
Since this application has to run as a batch process with
no user intervention I'd like to write code to deal with
Word failures in a more graceful way. From the Word VBA
help it looks like I could use this property.
Application.DisplayAlerts = wdAlertsNone
I think that would prevent the confirmation dialog box
from appearing. The problem is I can't reproduce the crash
to know whether that change would really work.
Does anyone out there have a .doc file that causes Word XP
to crash every time you open it? I tried using a hex
editor to insert some random garbage into a test file but
couldn't get Word to crash. So if anyone does have a
suitable bad file like that I would really appreciate it
if you could e-mail me a copy.
-Nick
processes large batches of documents. On a couple of
occasions Word has crashed while opening a document. There
is nothing really wrong with the document, and if you shut
down Word and reopen it then it doesn't crash again. The
real problem is that when Word reopens the same document
that it crashed on before, it displays a dialog box to ask
the user whether you really want to open a possibly bad
document.
Since this application has to run as a batch process with
no user intervention I'd like to write code to deal with
Word failures in a more graceful way. From the Word VBA
help it looks like I could use this property.
Application.DisplayAlerts = wdAlertsNone
I think that would prevent the confirmation dialog box
from appearing. The problem is I can't reproduce the crash
to know whether that change would really work.
Does anyone out there have a .doc file that causes Word XP
to crash every time you open it? I tried using a hex
editor to insert some random garbage into a test file but
couldn't get Word to crash. So if anyone does have a
suitable bad file like that I would really appreciate it
if you could e-mail me a copy.
-Nick