Vsto: Visual Studio Tools for the Microsoft Office System!
These days I suddenly became interested in VBA. I saw how to use C # To operate Word and Excel in a few days and found that there are still many good things, I used to be very familiar with word, and knew many word functions that "many people don't know! It can be said to be an advanced user.
It is very troublesome to use C # To operate word. The key is that there are many parameters, and different versions of office correspond to different DLL, and many officexp functions are different. Please note! I used office2003 and found it word11.0. Haha, I don't know that Microsoft has already released so many versions.
If you write the word program for the first time, refer to this picture.
I found a problem, no matter how I use Microsoft. office. interOP; or other namespaces, word cannot be used directly. applicationclass, and Microsoft. office. interOP. word. applicationclass, Microsoft. office. interOP. word. paragraph, etc. I don't know if it's a bug or...
Note: The environment is office2003,. NET 2003, XP Professional!