using System.Text; using System.Runtime.InteropServices; using Outlook = Microsoft.Office.Interop.Outlook; using Microsoft.Office.Interop.Outlook; namespace example { [ComVisible(true)] [ProgId("OffiOutlook")] [ClassInterface(ClassInterfaceType.AutoDual)] public class example { public String TestMessage() { return "Message from automation object"; } } }
regasm c:\example.dll /tlb:c:\example.tlb
CLEAR(latm_example); MESSAGE(latm_example.TestMessage());
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by GUID={...}:'example:example.
Check that the OLE control or Automation server is correctly installed an registered.
Comments
http://www.BiloBeauty.com
http://www.autismspeaks.org
This is the c/al code:
Trying to register it manually with regasm behaves exactly as Rubie describes.
Did you find solution Rubie?
http://www.mibuso.com/forum/viewtopic.php?f=23&t=46696&p=228244
IsakssonMi had the answer for me!