Это мой gridView
![enter image description here](https://i.stack.imgur.com/Z0TWe.png)
Это мой код для экспорта gridview в outlook
Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.MailItem oMsg = (Microsoft.Office.Interop.Outlook.MailItem)oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
string str;
MemoryStream ms = new MemoryStream();
try
{
gridView2.ExportToHtml(ms);
ms.Seek(0, SeekOrigin.Begin);
StreamReader sr = new StreamReader(ms);
str = sr.ReadToEnd();
}
finally
{
ms.Close();
}
oMsg.To = "test@test.com";
oMsg.Subject = "Test: ";
oMsg.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;
oMsg.Display(false);
oMsg.HTMLBody = "Test" + str + oMsg.HTMLBody;
код работает нормальноно значки не отображаются в outlook ![enter image description here](https://i.stack.imgur.com/ibhIk.png)
Значки встроены в gridview
Как я могу решить эту проблему?
Заранее спасибо.
Обновление: я добавил IconSet, используя свойство ColumnView.FormatRules в конструкторе
ColumnView.FormatRules
![FormatRules Property in Designer](https://i.stack.imgur.com/l4zoY.png)