# Ole in Servoy

**URL:** https://forum.servoy.com/t/ole-in-servoy/7753
**Category:** Classic Servoy
**Created:** [July 1, 2007, 8:34am UTC](https://forum.servoy.com/t/ole-in-servoy/7753 "2007-07-01T08:34:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)
#### Post date: [July 1, 2007, 8:34am UTC](https://forum.servoy.com/t/ole-in-servoy/7753/1 "2007-07-01T08:34:00Z")

</div>

I would like to use Ole like functions within Servoy to integrate with MS Office.

For instance there is a nice Java Outlook Connector form Moyosoft.  
See source example :

```auto
package com.moyosoft.samples.outlook;

import com.moyosoft.connector.com.*;
import com.moyosoft.connector.exception.*;
import com.moyosoft.connector.ms.outlook.*;
import com.moyosoft.connector.ms.outlook.folder.*;
import com.moyosoft.connector.ms.outlook.item.*;
import com.moyosoft.connector.ms.outlook.mail.*;

public class SendMail
{
   public static void main(String[] args)
   {
      try
      {
         // Outlook application
         Outlook outlookApplication = new Outlook();

         // Get the Outbox folder
         OutlookFolder outbox = outlookApplication.getDefaultFolder(FolderType.OUTBOX);

         // Create a new mail in the outbox folder
         OutlookMail mail = (OutlookMail) outbox.createItem(ItemType.MAIL);

         // Set the subject, destination and contents of the mail
         mail.setSubject("Hello world !");
         mail.setTo("your_email@test.com");
         mail.setBody("This is a test message.");

         // Send the mail
         mail.send();

         // Dispose the library
         outlookApplication.dispose();
      }
      catch(ComponentObjectModelException ex)
      {
         System.out.println("COM error has occured: ");
         ex.printStackTrace();
      }
      catch(LibraryNotFoundException ex)
      {
         // If this error occurs, verify the file 'moyocore.dll' is present
         // in java.library.path
         System.out.println("The Java Outlook Library has not been found.");
         ex.printStackTrace();
      }
   }
} 

My question is ( since i am not a java specialist ) :

Can this be integrated in a Servoy method ??? 

Or will Servoy offer Ole functionallity in future releases ??

Regards,

Hans

```

---

<div class="post-metadata">

### Author: ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)
#### Post date: [July 1, 2007, 9:30am UTC](https://forum.servoy.com/t/ole-in-servoy/7753/2 "2007-07-01T09:30:07Z")

</div>

Hi Hans,

IT2BE’s office plugin is totaly based on this java-lib!  
Look at his website: [http://www.it2be.com](http://www.it2be.com)

---

<div class="post-metadata">

### Author: ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)
#### Post date: [July 1, 2007, 10:07am UTC](https://forum.servoy.com/t/ole-in-servoy/7753/3 "2007-07-01T10:07:16Z")

</div>

Thanks Harjo,

I was already planning to test some of Marcel’s plugins  
and Beans.

---

<div class="post-metadata">

### Author: ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)
#### Post date: [July 1, 2007, 11:00am UTC](https://forum.servoy.com/t/ole-in-servoy/7753/4 "2007-07-01T11:00:50Z")

</div>

If you are doing everything that Marcel has done, you will spend a lot more money than you would be buying his plugin.

---

<div class="post-metadata">

### Author: ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)
#### Post date: [July 1, 2007, 11:14am UTC](https://forum.servoy.com/t/ole-in-servoy/7753/5 "2007-07-01T11:14:24Z")

</div>

I am not planning to “everything that Marcel has done”.

I am going to use as much available plug-ins and beans as possible.

By the way ![:D]( "Very Happy") i think do not even want to know

“everything that Marcel has done” ![8)]( "Cool")

Thanks for the reply’s

Hans
