public static void ConvertRtfToDocx(string inFileName, string outFileName) { // Load an RTF file into Aspose.Words. Document doc = new Document(inFileName); // Save the document in the OOXML format. doc.Save(outFileName, SaveFormat.Docx); } //ExEnd