Skip to content

Commit

Permalink
show display text instead of cell value
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwolff committed Mar 25, 2017
1 parent 0c83608 commit ba63c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EPPlus.Html/EPPlusExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static string ToHtml(this ExcelWorksheet sheet)
{
ExcelRange excelCell = sheet.Cells[row, col];
HtmlElement htmlCell = htmlRow.AddChild("td");
htmlCell.Content = excelCell.Value?.ToString();
htmlCell.Content = excelCell.Text;
htmlCell.Styles.Update(excelCell.ToCss());
}
}
Expand Down

0 comments on commit ba63c7e

Please sign in to comment.