When I try to save excel file as HTML using following code I don’t get excel like grid lines in webpage that gets saved. How can I achieve that Please help.
To explain more you see gridlines around cells in excel files- i want to see same gridlines in html page that I am saving.
string path = System.AppDomain.CurrentDomain.RelativeSearchPath;
string excelFilePath = System.AppDomain.CurrentDomain.BaseDirectory;
Workbook workbook = new Workbook();
workbook.Worksheets.RemoveAt(0);
Worksheet worksheet;
string sheetName = “StarawmanPDP”;
worksheet = workbook.Worksheets[workbook.Worksheets.Add()];
Cell cell = worksheet.Cells[“A1”];
cell.PutValue(“Hello World!”);
worksheet.Cells.StandardHeight = 15;
worksheet.Cells.StandardWidth = 25;
worksheet.IsGridlinesVisible = true;
worksheet.Name = sheetName;
workbook.Save(excelFilePath + @“Files” + Environment.UserName.ToString().ToUpper() + “.html”, SaveFormat.Html);