Export html table in a mail

Hello,

I made an desktop app to manage our internal requests. We need to make easier synthetic table with the currents requests and send it with our mail client (Microsoft Outlook Windows ans MacOS).

I try to copy the html code on the clipboard with

clipboard.text = MyHtmlCode

When I pasted the my table on my mail client, it write the html code and not my table

I tried to show the table on a HTMLViewer by

Dim f As FolderItem = GetTemporaryFolderItem
HTMLViewer1.LoadPage(MyHtmlCode, f)

When I see my table on the HTMLViewer, I try ton copy my table on the clipboard with the contextual menu. When I paste on the mail client only the text of the table is write.

Do you have a idea to paste table on a mail client ?

Regards

Arnaud

Why don’t you create your emails with AppleScript and do the html directly?

AppleScript is not available in Windows.

A possible way would be to create a tab separated or csv file, and attach it to the mail.

AppleScript on the Mac side and VBA on the Windows side. VBA to make html mails is very strange but it works. See http://www.rondebruin.nl .

Sure, but as you say it is very strange.

I have not used Outlook in ages, but it should be possible to load HTML. In that case, instead of trying to go through the keyboard, generating an HTML message should be pretty simple, and then load it into Outlook.

[quote=317070:@Arnaud SICHEL]clipboard.text = MyHtmlCode
When I pasted the my table on my mail client, it write the html code and not my table
[/quote]
I wouldn’t expect anything different as you’ve added the html code as text in the clipboard. Try it with clipboard.AddRawData and a proper UTI for HTML content or the strange windows equivalent described here: http://documentation.xojo.com/index.php/Clipboard.AddRawData

Tobias Bussmann, it work fine on MacOS !

I’ll try on Windows.

Thanks for your help.

Regards

Arnaud