Render Outlook emails in MS access as they appear in Outlook

theAussieDragon

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Exchange Server
HI Everyone,

I'm using windows10, outlook 2016 -32 bit.

Using Visual Basic in MS Access, once you have the current mail item, is there a way to display the email contents (assuming it is HTML), as you would see the email rendered using the mail client in MS outlook, but, on a form in MS Access?

Essentially I want to see the same view but using MS Access...

Many thanks,

Philip
 

theAussieDragon

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Exchange Server
HI Diane,

Thanks for the reply. I have solved it:

Add a Microsoft Web Browser Control to the form and use the following code:

  1. Dim HTML As String
  2. HTML = "<html><body>Testing...</body></html>"
  3. WebBrowser1.Navigate "about :blank" '/// initialize the browser window
  4. DoEvents
  5. With WebBrowser1.Document
  6. .write HTML '/// write the HTML to your browser window {in our case item.htmlbody}
  7. End With
Many thanks,

Code sourced from: Set HTML in WebBrowser control [resolved]-VBForums
 

Similar threads

Top