we are using aspose-word version 184.108.40.206. Our requirement is existing word document, we want to the Underline and Blue Color in specific word in whole string in Aspose word document. How can i achieve this and also we attached the sample project and screen shots for your review.
We are using following code for this requirements.
string File = “C:\UnderlineIssue.Docx”;
Aspose.Words.Document doc = new Aspose.Words.Document(File);
Run run = new Run(doc, “Test Enhanced Tiered Plan 5300/6300/0%/40%”);
run.Font.Underline = Underline.None;
System.IO.MemoryStream outStream = new System.IO.MemoryStream();
byte docBytes = null;
docBytes = outStream.ToArray();
FileStream output = new FileStream(“C:\UnderlineIssue1.Docx”, FileMode.Create,
// Write byte array contents in the output file stream
output.Write(docBytes, 0, docBytes.Length);
// Close output file
Note: Please include the dll aspose-word version 220.127.116.11.
I need Solution for aspose-word version 18.104.22.168, No need higher version.