Open Email/Outlook with Dxl

Hi,

I use Doors 9.3. and


Id like to import (Data) from new emails (Outlook) into Doors with DXL / OLE-functions. Is that possible ?

Does anyone have an example?

Thank you very much,

regards Miha87


Miha87 - Thu Dec 12 05:51:00 EST 2013

Re: Open Email/Outlook with Dxl
bmij - Thu Dec 12 07:03:10 EST 2013

This may help you http://download-na.telelogic.com/download/ugcagenda/W_DennisLockshine-Final-IntegratingDOORSintoWindows-VisualBasicandCOMprogrammingusingDOORSDXL.pdf

It about integrating DOORS using DXL with Windows VBA.

Regards

Jim B

Re: Open Email/Outlook with Dxl
Miha87 - Thu Dec 12 08:49:55 EST 2013

Hey,

to create a new Email with Dates in Outlook is no problem:

 

void Email(string subject, BufferhtmlBuffer)

{OleAutoObj objOutlook = null

OleAutoObj objItem = null

OleAutoArgs args = create

string emailTo = ""

string newD = ""

 

objOutlook = oleCreateAutoObject("Outlook.Application")

 

olePut(objItem, "To", emailTo)

olePut(objItem,"HTMLBody", newD)

}

 but i dont understand, to access on a incoming email with dxl. For import the Dates from the email to Doors ?!       =(

 

regards Miha87

 

 

Re: Open Email/Outlook with Dxl
llandale - Thu Dec 12 16:53:53 EST 2013

Miha87 - Thu Dec 12 08:49:55 EST 2013

Hey,

to create a new Email with Dates in Outlook is no problem:

 

void Email(string subject, BufferhtmlBuffer)

{OleAutoObj objOutlook = null

OleAutoObj objItem = null

OleAutoArgs args = create

string emailTo = ""

string newD = ""

 

objOutlook = oleCreateAutoObject("Outlook.Application")

 

olePut(objItem, "To", emailTo)

olePut(objItem,"HTMLBody", newD)

}

 but i dont understand, to access on a incoming email with dxl. For import the Dates from the email to Doors ?!       =(

 

regards Miha87

 

 

OLE automation is very tough and tedius.  I've struggled with Word and learned a few things.  You will no doubt want to turn your "Application" object into a handle on your "emails", and then plow through that collection looking for the "recent" ones, and end up with some "email" handle.  You should then be able to get the oleProperties fot that "email", including the "body" text.

Seems to me though you'd want to write some Outlook macro that detects when an Email has DOORS relevant changes, then sends DOORS the commands to implement the changes, with "runstr" command. 

-Louie