Unable to Create Hyperlink in Cell Text

Samuel David

Member
Joined
Nov 29, 2022
Messages
9
Programming Experience
Beginner
Hello Everyone,

I am trying to embed hyperlink in worksheet cell text. But below block of code doesn't work for me. I am using telerik library here. What's wrong in below code?

Embed Hyperlink in cell text:
using(var rowExporter = sheetExporter.CreateRowExporter())
{
String policy = “<a href=https://www.termsfeed.com/blog/sample-terms-and-conditions-template/> Policy Terms</a>”;
String showText = “For necessary info, Please refer “ +policy;
Using var cellExporter = rowExporter.CreateCellExporter();
cellExporter.SetValue(showText);
}

Please suggest me.

Thanks,
Sam
 
Last edited:
Telerik library for WinForms, WebForms, or WPF? Do you know if the library supports HTML in its cells?
 
See:

Hi,

I have gone through this link. But i didn't find any suitable answer for this. I am using Telerik.Documents.SpreadsheetStreaming assembly with Version 2020.3.1019.20. I just need how to assign text having hyperlink to ICellExporter object here. Please suggest me if there is any wrong here

Assign hyperlink to ICellExporter object:
    string policy = "<a href=\"https://www.termsfeed.com/blog/sample-terms-and-conditions-template/\">Policy Terms</a>";
    string showText = "For necessary info, Please refer " + policy;
//rowExporter -> IRowExporter object here
    using var cellExporter = rowExporter.CreateCellExporter();
    cellExporter.SetValue(showText);

Thanks,
Sam
 
Have you contacted Telerik support? It should be part of your license fee to be able to get support from them.
 
Back
Top Bottom