Alerts Problem

B

Badis

I'm using C# for automation but the process hangs because at some stage some
alerts may come around!
I have tried:
wrdApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;
&
wrdApp.DisplayAlerts =0;
all I need is to produce a word document and save it in the background. I
don't need to see it while the process is done. so, is there a way to by pass
there alerts?

Cheers.
 
C

Cindy M.

Hi =?Utf-8?B?QmFkaXM=?=,
I'm using C# for automation but the process hangs because at some stage some
alerts may come around!
I have tried:
wrdApp.DisplayAlerts = Word.WdAlertLevel.wdAlertsNone;
&
wrdApp.DisplayAlerts =0;
all I need is to produce a word document and save it in the background. I
don't need to see it while the process is done. so, is there a way to by pass
there alerts?
No, there is not. The Office applications were not designed to run unattended;
there's no way to run Microsoft Word and ensure some kind of message won't
suspend execution.

If all you want to do is generate documents, consider writing them in
WordProcessingML (Word's native XML) using the new Open File Formats for Office
2007, or as RTF. This way you won't need to automate Word at all.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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