469,587 Members | 2,139 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

How outlook is able to display as HTML??

110 100+
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
Oct 18 '07 #1
2 1379
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.
Oct 21 '07 #2
xoinki
110 100+
hi,
Thnx for the insight.. I will check this out!

Regards,
Xoinki
Oct 23 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Fritz Switzer | last post: by
3 posts views Thread by Chuck Farah | last post: by
10 posts views Thread by John | last post: by
2 posts views Thread by John | last post: by
2 posts views Thread by Karen Grube | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.