MS Application Error Reporting & Automation

M

MatthewWhite

I am writing a windows service in vb.net to open up word,
excel and powerpoint files and print them to a virtual
printer which creates a pdf file from the document. the
problem is that, sometimes when i am printing the file ms
application error reporting tool (dw.exe) starts up as a
child process of word. is there a way to disable this
error reporting tool. so that when word crashes it just
closes itself? The reason why i ask this is because
whenever the reporting tool is created, i am unable to
close it through code and therefor because it is a child
process of word, word won't close and my service stops
working unitll i (a) use process explorer to kill the
offending process or (b) restart the machine.

if anyone has any idea, i would be most appreciative
Thanks.

Matthew White
(e-mail address removed)
Theta Technologies
Brisbane QLD Australia
 
M

Mandar Naik[MSFT]

Hi,

I would recommend going through the following link if you plan to
automate Office through a Windows Service,

http://support.microsoft.com/?id=257757

Please refer to the following is particular,

"Microsoft does not currently recommend, and does not support, Automation of
Microsoft Office applications from any unattended, non-interactive client
application or component (including ASP, DCOM, and NT Services), because
Office may exhibit unstable behavior and/or deadlock when run in this
environment.
"

--
Regards,
Mandar Naik


This posting is provided AS IS with no warranties, and confers no rights.
 
M

Mattherw White

Thanks for your reply, I have allready looked into this
article. but no i have no choice but to use automation
from within a service. I take it that there is no way of
disabling the windows error reporting tool. Just one
question is there any plans to support automating office
within a windows service?

Matthew White
(e-mail address removed)
Theta Technologies
Brisbane QLD Australia
 

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