[英]How to insert hyperlink in excel using open XML in c#
How to insert hyperlink in Excel using C#? 如何使用C#在Excel中插入超链接? I tried this, but it's not working
我试过了,但是没用
WorksheetPart workSheetPartss = new WorksheetPart();
workSheetPartss.AddHyperlinkRelationship(new Uri("http://www.google.com", UriKind.Absolute), true);
Excel.SetCellValue(spreadsheet, worksheet, k, i + 1, workSheetPartss.Uri.ToString(), true);
This is the only real step-by-step reference I could find. 这是我可以找到的唯一真正的分步参考。 Hopefully it can help you create the hyperlink.
希望它可以帮助您创建超链接。
https://ankushbhatia.wordpress.com/2011/03/04/how-to-insert-a-hyperlink-in-excel-using-open-xml-sdk-2-0/ https://ankushbhatia.wordpress.com/2011/03/04/how-to-insert-a-hyperlink-in-excel-using-open-xml-sdk-2-0/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.