Hi,
I think nobugz is right.
When automating Office Word in a Windows Forms application, we usually use the following statement:
using Word = Microsoft.Office.Interop.Word;
Because if you "using Microsoft.Office.Interop.Word;", then
Application will become ambiguous - System.Windows.Forms.Application and Microsoft.Office.Interop.Word.Application.
So by "using Word = Microsoft.Office.Interop.Word;", you can differenciate Word.Application from System.Windows.Forms.Application.
Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact
msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
The CodeFx Project
My Blog (in Simplified Chinese)