Access newer properties than included with outlook2000.pas

Add-in Express™ Support Service
That's what is more important than anything else

Access newer properties than included with outlook2000.pas
 
Hansjoerg Posch




Posts: 3
Joined: 2006-07-12
Hello!

I wanted to access the bodyformat property (if available) - how can the code found at

http://www.add-in-express.com/forum/read.php?FID=5&TID=805&MID=3836&phrase_id=217533#message3836

be written in Delphi?

Best regards,

Hansjoerg Posch
Posted 12 Jul, 2006 11:00:39 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Hansjoerg,

You can use OleVariant. See the pseudo-code below:


procedure SetBodyFormat(const AMail: _MailItem; AFormat: Integer);
begin
  try
    OleVariant(AMail).BodyFormat := AFormat;
  except
    // Outlook 2000
  end;
end;

Posted 13 Jul, 2006 04:28:54 Top