1 Reply Latest reply: Jan 26, 2009 12:33 PM by 843804 RSS

    Jacob - save outlook message as .msg file

    843804
      Hi,

      I need to save an outlook mail item as a .msg file using Jacob.
      In C# I would use the syntax
      mail.SaveAs(savePathAndName, Outlook.OlSaveAsType.olMSG) where 'mail' is an outlook mailitem, the first parameter is a string and the second parameter is a type.

      In Jacob I've tried various combinations of
      Variant saveResult = Dispatch.call(mailItem, "SaveAs", "Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG");
      with no success

      Any ideas?

      tvm
      RCF