I'm a VB.NET amateur programmer, and I'm developing a new application to help my coworkers and myself in my job. It involves things like opening and saving documents, searching and replacing within its contents, and reading, creating and sending e-mails automatically
I'm already able to deal with Word.Application and Outlook.Application in late-bound fashion, and even was able to listen to some of Word's events, using things I learned in this site.
But a similar event listener didn't work for Outlook, and, to speak frankly, building my own wrapper for late-bound Office Applications lays far beyond my rookie abilities.
Therefore, I would like very much to use NetOffice in my project (namely for Word), however when I reference the dlls, all I have is some namespaces, including one named WordApi, but I can't find a Word class which I can instantiate and run my code against its members.
I don't know if I'm doing something wrong. I tried to reference the DLLs directly in VS2010Express (which is the one I normally use), and tried it also using NuGet with VS2013Express, with the same results.
What would it take, in very simple terms, to embed NetOffice assemblies inside a VB Windows Forms project, and use the code I already have for things like opening and saving documents, searching and replacing within its contents, and reading, creating and sending e-mails automatically?
Thank you already for any help anyone can offer me.
I'm already able to deal with Word.Application and Outlook.Application in late-bound fashion, and even was able to listen to some of Word's events, using things I learned in this site.
But a similar event listener didn't work for Outlook, and, to speak frankly, building my own wrapper for late-bound Office Applications lays far beyond my rookie abilities.
Therefore, I would like very much to use NetOffice in my project (namely for Word), however when I reference the dlls, all I have is some namespaces, including one named WordApi, but I can't find a Word class which I can instantiate and run my code against its members.
I don't know if I'm doing something wrong. I tried to reference the DLLs directly in VS2010Express (which is the one I normally use), and tried it also using NuGet with VS2013Express, with the same results.
What would it take, in very simple terms, to embed NetOffice assemblies inside a VB Windows Forms project, and use the code I already have for things like opening and saving documents, searching and replacing within its contents, and reading, creating and sending e-mails automatically?
Thank you already for any help anyone can offer me.