Hello,
I would like to know the smallest way to change an image to text when exporting to excel.
My column is of type GridTemplateColumn with a literal object carrying the image, as in the example below, inside an ItemDataBound.
If CBool(e.Item.DataItem("Read")) = True Then
litStatus.Text = "<i Class=""fa fa-envelope-open-o fa-2x"" title=""Read""></i>"
Else
litStatus.Text = "<i Class=""fa fa-envelope-o fa-2x"" title=""Unread""></i>"
End If
Thank you very much in advance
I would like to know the smallest way to change an image to text when exporting to excel.
My column is of type GridTemplateColumn with a literal object carrying the image, as in the example below, inside an ItemDataBound.
If CBool(e.Item.DataItem("Read")) = True Then
litStatus.Text = "<i Class=""fa fa-envelope-open-o fa-2x"" title=""Read""></i>"
Else
litStatus.Text = "<i Class=""fa fa-envelope-o fa-2x"" title=""Unread""></i>"
End If
Thank you very much in advance
Another possibility would be to have two literal objects, one with the image path and the other with the text, if it were in the Grid presentation it would present the image literal and if it were to export to excel it would present the literal text, using the visible status, But I couldn't do that either.