Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Jul 28, 2021 10:32 am

Hi Spire,

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.

j2j2j2j2
 
Posts: 9
Joined: Tue May 25, 2021 6:58 am

Wed Jul 28, 2021 10:48 am

Hi Spire,

The version that we are using is spire.doc 9.6.10.3040

j2j2j2j2
 
Posts: 9
Joined: Tue May 25, 2021 6:58 am

Thu Jul 29, 2021 6:51 am

Hello,

Thanks for your inquiry.
I tested your case but did not notice that some words stuck together in the generated docx file. Meanwhile, I carefully checked the result document (Outcome.docx) you provided but did not find the issue you mentioned either.
To help us analyze your issue further, could you please help us point out the words that are stuck together? Some screenshots would help a lot. Also, please let us know which version of Microsoft Word you are using to view this Word file. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Thu Jul 29, 2021 8:35 am

Hi Spire,

Thank you for the reply. Based on your reply, I have tried to open the document with latest MS words and there is no issue at all.

The word stuck together issue existing in MS words 2007.

Thank for the clarification. You may proceed to close the ticket.

Thank you

j2j2j2j2
 
Posts: 9
Joined: Tue May 25, 2021 6:58 am

Thu Jul 29, 2021 9:06 am

Thanks for your feedback.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc