views:

206

answers:

1

I am having a problem with the Document.SaveAs method in Word VBA with large Word documents, it seems that the save operation is asynchronous, ie. after calling .SaveAs it returns immediately, but with large Word documents the actual save operation may not has been completed and it's in progress in another thread.

So what I want to ask is that if there is a way to detect if the actual save operation is in progress or finished?

I use Delphi to call the automation interface of Word, if it means something in discussing this problem, but I don't think so?

A: 

Hi Edwin,

The saveas of the office automation is a out of process call, so it will always run on a seperate process, hence its asynchronous in nature.

There is literally no way to catch the notification unless it gives an exception.

StevenzNPaul