TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
First Last
NA
40
8.8k
Add hyperlink in Excel file using Open XML
Sep 12 2019 8:38 AM
I have added a sample line of code that's what i am trying to get my result. Please help if anybody have idea how to achieve this, only need using openXml library.
Hyperlink hyperlink = new Hyperlink()
{
Reference = "A" + indexer, Location = "Unique" + (indexer - 1) + "!A1", Display = "Unique" + indexeattributes.Add(new OpenXmlAttribute("t", null, "inlineStr"));
var cell = new Cell() { CellReference = hyperlink.Display };
//cell.InnerText = "dfd";
writer.WriteStartElement(cell, attributes);
//writer.WriteStartElement(hyperlink, attributes);
//writer.WriteString("fdf");
//writer.WriteElement(new InlineString(new Text("dfdfs")));
writer.WriteStartElement(new InlineString(hyperlink));
writer.WriteEndElement();
Reply
Answers (
4
)
getting ArgumentOutOfRangeException for my custom data type.
ref vs out difference