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.

Mon Jun 01, 2015 2:26 pm

Hi,

just a small code to load & save a DOCX to DOCX :

Code: Select all
static void Test1(string source, string destination)
        {
            using (Document document = new Document(source))
            {
                document.SaveToFile(destination, FileFormat.Docx);
                System.Diagnostics.Process.Start(destination);
            }
        }


As you can see on screenshot, in the header part, many fields are lost. Using Creation Mode let them to be visible but formatting is incorrect.

Vincent

nolme
 
Posts: 79
Joined: Fri Apr 24, 2015 3:56 pm

Tue Jun 02, 2015 2:53 am

Hello,

Thanks for your inquiry.
I have tested your issue, and don’t find the fields are lost. The picture covers the fields. About formatting is incorrect, I have reproduced this issue and posted it to our dev team. Once it is resolved, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Jun 02, 2015 6:26 am

Hello,

After investigation, we found that the issue is caused by the version. Please set the FileFormat as Docx2013 when save the document.
Code: Select all
document.SaveToFile(destination, FileFormat.Docx2013);

If there are any questions, welcome to get it back to us.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Jun 05, 2015 8:04 am

Hello,

Have you tried the code ? Has your issue been resolved ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Mon Jun 08, 2015 7:37 am

Hi,

using Docx2013 solved the problem.
using Docx2010 didn't solve the problem.

Vincent

nolme
 
Posts: 79
Joined: Fri Apr 24, 2015 3:56 pm

Tue Jun 09, 2015 9:51 am

Hello,

Thanks for your feedback.
For the using Docx2010 didn’t solve the problem issue, we have resolved it. We will inform you when the new hot fix is released.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Jun 17, 2015 8:15 am

Hello,

We just published a new hotfix of Spire.Doc:Spire.Doc Pack(hot fix) Version:5.4.36, in which the issue of using Docx2010 has get resolved. Please download it and have a try.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc