How outlook is able to display as HTML??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xoinki
    New Member
    • Apr 2007
    • 110

    How outlook is able to display as HTML??

    hi all,
    I have a HTML page which is exported from a database..
    It is shown in simple table format. Now in the HTML page if i copy all the contents (Ctrl + a and Ctrl + c) and open my outlook and press "New" message button and paste there.. It is pasted as HTML format!! i have a small tool called "clipsize" (http://www.programurl. com/clipsize.htm) to monitor contents of the clipboard. It doesnt show any HTML tags after i copied from the browser..

    my question is how outlook is able to show it in compiled HTML format?

    if i know how data is maintained after copying from clipboard.. i can maintain data in that format directly using C++.

    Thnx in advance,
    Xoinki
  • Cucumber
    New Member
    • Sep 2007
    • 90

    #2
    If you are pressing CTRL-C inside a web browser, it is surely using an OLE mechanism to place the data in the clipboard

    Check the function
    OleGetClipboard
    To get this data

    When applications put data in the clipboard, they may put data in different formats, i.e. text format and ole format. Im not familiar with your clipboard monitoring application, but I would guess it may only be monitoring clipboard data in text format and it is not detecting OLE format data. But that is just a guess.

    As a side note, you could embed a WEB browser inside your C++ application using OLE embedding, so you wouldnt need to code the HTML decoding in C++, all you needed to do would be to embed an HTML browser in your window, and feed it the HTML data from the clipboard. That is what Outlook does for HTML data.

    Comment

    • xoinki
      New Member
      • Apr 2007
      • 110

      #3
      hi,
      Thnx for the insight.. I will check this out!

      Regards,
      Xoinki

      Comment

      Working...