我有一個應用程序可以創建電子郵件並將其發送給我的團隊。我根據特定的條件動態創建一個HTML表格。然後我使用Outlook HTMLBody方法發送我的電子郵件。電子郵件工作正常。將html表格導出爲excel表格
用戶現在問我是否可以在電子郵件中創建一個html鏈接來打開顯示相同數據的excel文件。我的問題是有一種快速或簡單的方法來複制我用於我的電子郵件直接使用Excel的HTML表格?
string htmlHeader = "<table style='font-size: 12pt;'><tr><th align='left'>Sedol</th><th> </th>" +
"<th align='left'>Name</th><th> </th>"+
"<th align='left'>Ex Date</th><th> </th>" +
"<th align='left'>Div Type</th><th> </th>" +
"<th align='left'>Div Contribution</th><th> </th>" +
"<th align='left'>Div Value GBP (p)</th><th> </th>" +
"<th align='left'>Nominals</th><th> </th>" +
"<th align='left'>Currency</th><th> </th>" +
"<th align='left'>Country of Incorp</th><th> </th></tr>";