I load a docx from a file and save it into a new docx. However, some of the words stuck together.
- Code: Select all
Document mocDoc = new Document();
string myTemplateFilePath = Path.GetDirectoryName(System.AppDomain.CurrentDomain.BaseDirectory) + Path.DirectorySeparatorChar + "TemplateDoc" + Path.DirectorySeparatorChar + "Original.docx";
mocDoc.LoadFromFileInReadMode(myTemplateFilePath, FileFormat.Auto);
string outputPath = tempPath + Path.DirectorySeparatorChar + "Outcome" + " - " + DateTime.Now.ToString("yyyyMMddHHmmss") + ".docx";
mocDoc.SaveToFile(outputPath, FileFormat.Docx);
Kindly help to check on the issue.