Outlook 2003
Michel de Lange <[email protected]> Tue, 20 Jun 2006 09:21:23 -0400
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hello, I am trying to use jawin to interact with Outlook 2003. After using the typebrowser on the OLB file, it generates java code, but the code suffers from the same compiler errors as reported by Stan Hughes in another thread (Thu, 11 Aug 2005 09:24:56 -0400). Luckily, he also provided some suggestions on what to do with the errors. I have removed all these methods: public int getClass() throws COMException. I take it the error message means that class Object also has a method called getClass (), which returns an Object, so you cannot override it returning an int. I also added the underscores, like Stan suggests to get rid of the error: The method stealUnknown is not defined for type XXX. In addition, I had some errors for missing object, such as Assistant and ComAddIns. I removed the references to those as well. I first figured out Assistant lives in Office.dll, but the typebrowser won't load that particular dll for me. After that, the code compiles well. I would rather like it if someone who knows about these things, because I do not, would confirm that this is the right way to go about it. And what I would like even more is example code of how to access Outlook now. I can get the Application object by instantiating _Application (Outlook.Application), but what do I do now? I'd expect there to be a method such as _app.getMailItems() or something like that, but there isn't one. I would really appreciate example code for Outlook 2003, the more the better. Finally, I'd like to say that I found this mailing list exceedingly hard to join. All those emails that should come but don't! Many thanks for your help. If you have any expertise with Jawin and Outlook, I'd much like to hear from you.