Closed batyadmx closed 1 day ago
@batyadmx
HtmlDocumentFacade is erro
public void AddStyleClass(XmlElement element, string classNamePrefix, string style) { string exising = element.GetAttribute("class"); string addition = GetOrCreateCssClass(element.Name, classNamePrefix, style); string newClassValue = string.IsNullOrEmpty(exising) ? addition : (exising + " " + addition); element.SetAttribute("class", newClassValue); }
update ` public void AddStyleClass(XmlElement element, string classNamePrefix, string style) { string exising = element.GetAttribute("class"); string addition = GetOrCreateCssClass(element.Name, classNamePrefix, style); string newClassValue = string.IsNullOrEmpty(exising) ? addition : (exising + " " + addition);
element.SetAttribute("class", newClassValue);
}
`
NPOI Version
2.7.1
File Type
xlsx
Upload the Excel File
XLSX file: pepa.xlsx
Html result: pepa.txt
Reproduce Steps
Here's the code
Issue Description
After convertion html code contains styles for table rows, but tr tags dont have assigned classes.