automated mail merge program hanging-- urgent help needed.

Apr 5 2005 10:29 AM
Hi, I have automated mail merge process using word object library for word 2003 documents using C# and asp.net. It works fine if the datasource has all values as the number of merge fields. But if the number of merge fields is more than the values in the datasource then the system hangs executing the "Word.MailMerge.Execute(ref lo_RefFalse); " code. {where lo_RefFalse is an object set to false } The control does not come out and programme hangs. Also it does not throw any exception. As a result the word exe object still remains in task manager. How to solve the problem and how to catch the exception. Any help is highly appreciated. Thanks in advance -- sachin.