Hi Team.
I am using aspose.word 19.5
and code is-
string dataDir = @"D:\Backup\Reports\" + "FinalReport" + DateTime.Now.Ticks + ".docx";
//Aspose.Words.License license2 = new Aspose.Words.License();
//license2.SetLicense("Aspose.Total.lic");
Aspose.Words.Document doc = new Aspose.Words.Document();
DocumentBuilder builder = new DocumentBuilder(doc);
string s = "<div>Profile Notes: <span style =\"text-decoration-line:underline;\"> According to the <span style=\"font-weight:normal;font-style:italic;\" > Gov.</span> State <span style=\"font-weight:bold;\"> Securities </span> Board; <span style=\"font-weight:normal;font-style:normal;color:rgb(255, 0, 0);\" > November </span> 05, 2019: This is only for test </span > now. </div> ";
builder.InsertHtml(s, true);
doc.Save(dataDir);
The Underline css not work properly.
Please suggest me better approach to create word document.