Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 11-Jan-17 2:25am

 
Share this answer
 
Comments
Sheikh Waqas Ali 22-Oct-14 3:03am    
Still not created diagonal border in excel epplus
worksheet.Cells[83, 3].Style.Border.Diagonal.Style = ExcelBorderStyle.Thin;
worksheet.Cells[83, 3].Style.Border.DiagonalUp = true;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900