This project has moved and is read-only. For the latest updates, please go here.

How do create a diagonal cell using EPPlus?

Oct 21, 2014 at 7:20 AM
How do I create a diagonal cell using EPPlus ASP.NET C#?

I am using the following code, but a diagonal is not created in row 83 in Excel.

worksheet.Cells[83, 3].Style.Border.Diagonal.Style = ExcelBorderStyle.Thin;
worksheet.Cells[83, 3].Style.Border.DiagonalUp.ToString();

I want to create diagonol line in a cell which start up from top left border edge and end on bottom right border end
Dec 23, 2014 at 7:43 AM
Hi,
Use below code:
worksheet.Cells[83, 3].Style.Border.Diagonal.Style = ExcelBorderStyle.Thin; 
worksheet.Cells[83, 3].Style.Border.DiagonalUp = true;