A
Adam
Hi all,
I hope I'm posting in the correct place. I have been searching for a few hours now and I haven't been able to find a solution as yet.
I have successfully been able to write a C# program which automates word to produce a series of word documents (1,000+ pages each).
The problem I am finding is that when a user opens Word it's creating a new document within the instance of Word which was created by my C# program. When this occurs it causes my program to crash because its attempts of start entering data within the new document instead of the original document created by my program.
Is there any way to force word to create a new instance of word for any documents opened or created (by the user themselves) while my program is working with it's instance of word.
I've noticed that if another copy of word is running before my program creates it's instance there is no problems.
I'd appreciate anyones help.
Thanks, Adam
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
I hope I'm posting in the correct place. I have been searching for a few hours now and I haven't been able to find a solution as yet.
I have successfully been able to write a C# program which automates word to produce a series of word documents (1,000+ pages each).
The problem I am finding is that when a user opens Word it's creating a new document within the instance of Word which was created by my C# program. When this occurs it causes my program to crash because its attempts of start entering data within the new document instead of the original document created by my program.
Is there any way to force word to create a new instance of word for any documents opened or created (by the user themselves) while my program is working with it's instance of word.
I've noticed that if another copy of word is running before my program creates it's instance there is no problems.
I'd appreciate anyones help.
Thanks, Adam
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com