Get the HTML text of a Word File

code_eatercode_eater Member Posts: 5
Hi experts

The following code works perfectly:
OutlookMailItem := WordDocument.MailEnvelope.Item;
BodyHTML := OutlookMailItem.HTMLBody;
As a new requirement it must also work on a machine without Outlook. So the question is: How to get the HTML text without the help ot OutlookMailItem?

Thanks in advance
Thomas


Best Answer

Answers

  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    edited 2018-06-13
    You can do the same (or even more) with Outlook Redemption library. I was using it myself to do a bit more advanced Outlook integration in older NAV versions.

    It works very well, I dare to say much better than Outlook Object Model objects. It is very friendly priced too.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • code_eatercode_eater Member Posts: 5
    Thanks Slawek!
    Any other ideas without additional libs?
  • code_eatercode_eater Member Posts: 5
    Hi Slawek
    Thx, I'll give it a try.
    Thomas
Sign In or Register to comment.