I want to change Direction by Aspose.Word Or OpenXml Word (WordprocessingDocument ) (C#). method is like here:
private static void AddHtmlToDoc()
{
var html = @"<html> <a href=""http://www.google.com/"" style=""color:#FF0000;"">Red Link</a><a href=""http://www.google.com/"" style=""color:#00FF00;"">Blue Link</a > </ html > ";
Aspose.Words.Document docAspose = new Words.Document();
Words.DocumentBuilder b1 = new DocumentBuilder(docAspose);
b1.InsertHtml(html);
docAspose.Save(dir2);
WordprocessingDocument doc = WordprocessingDocument.Open(dir2, true);
var documentPart = doc.MainDocumentPart.Document.Body;
Console.ReadKey();
}
How can I do it?