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.

Tue Mar 05, 2019 2:04 pm

Hello, I have updated my Spire.Doc instance from 6.10.6 to 7.2.4. After the upgrade, I'm now experiencing duplicate footer entries after converting a .doc to .docx and updating the table of contents. The .doc is sent as a byte array. With the 6.10.6 version I did not experience duplicate footers.

HttpFileCollection files = httpRequest.Files;
// Get file content as Memory Stream
MemoryStream ms = new MemoryStream();
httpRequest.Files[0].InputStream.CopyTo(ms);
// Open Document in Spire from a stream
Document document = new Document();
document.LoadFromStream(ms, FileFormat.Auto);
//Convert Doc to Docx
document.SaveToStream(ms, FileFormat.Docx);
document.LoadFromStream(ms, FileFormat.Docx);

document.UpdateTableOfContents();

tholland
 
Posts: 22
Joined: Fri Dec 01, 2017 6:38 pm

Wed Mar 06, 2019 3:35 am

Dear Todd,

Thanks for your inquiry.
I did a test with the Spire.Doc 7.2.4 but didn't encounter the duplicate footer entries in the generated .docx. Here I linked my testing web application and attached my generated .docx for your check. Could you please debug my application and tell us your result? And to help us better investigate your issue, please also provide your system configuration (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese). Thanks in advance.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri Mar 08, 2019 2:37 am

Hello,

Greetings from E-iceblue.
How is your issue now? Could you please give us some feedback at your convenience? Thanks in advance.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri Mar 08, 2019 1:02 pm

Thank you for your response. I plan to review your code and retest the 7.2.4 version next week.

tholland
 
Posts: 22
Joined: Fri Dec 01, 2017 6:38 pm

Mon Mar 11, 2019 1:52 am

Hi,

Okay, I am waiting for your testing feedback. Wish you all the best.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Mon Mar 18, 2019 2:25 am

Hi,

Thank you for sharing further information via email.
I have reproduced the duplicate footer issue and posted it to our Dev team for investigation and fixing. If there is any update, we will inform you. Sorry for the inconvenience caused.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Fri Mar 22, 2019 11:06 am

Hi,

Glad to inform you that the duplicate footer issue has been resolved. Please download the hotfix from the following link.
Spire.Doc Pack(hot fix) Version:7.3.10

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.Doc