[英]C# exporting e-mails to excel on widndows forms using microsoft.office.interop.excel
I need to export some data to excel in my forms aplication, so i used microsoft.office.interop.excel and everything is ok except one thing. 我需要将一些数据导出到表格应用程序中的excel中,所以我使用了microsoft.office.interop.excel,除了一件事情之外,其他一切都OK。 When exporting client's email I would like to make it an mailto: link.
导出客户的电子邮件时,我想将其设置为mailto:链接。
excellApp.Cells[row, 16] = "mailto:"+client.Email;
doesn't work 不起作用
When I add hiperlink when exporting www field it looks like this: 当我在导出www字段时添加hiperlink时,它看起来像这样:
excelWorkSheet.Hyperlinks.Add(excellApp.Cells[row, 14], client.Www, Type.Missing, Type.Missing, Type.Missing);
excelWorkSheet.Hyperlinks.Add(excellApp.Cells [row,14],client.Www,Type.Missing,Type.Missing,Type.Missing);
How can I export an email to have similar effect coz right now I have only simple fields without any action...? 我现在如何导出电子邮件以具有类似的效果,因为我只有简单的字段却没有任何操作...?
这样的事情可能会起作用:
excelWorkSheet.Hyperlinks.Add(excellApp.Cells[row, 14], "mailto:youremail@test.com", Type.Missing, "Someones Mail", Type.Missing);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.