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 Jul 27, 2021 4:03 pm

When template file contains overlapping textboxes and one of them is a heading, doc.UpdateTableOfContents() generates an exception:
System.ArgumentException: An item with the same key has already been added. Key: Spire.Doc.Documents.Paragraph
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at spr?.?(Object A_0, spr? A_1)
at spr?.?(spr? A_0)
at spr?.?()
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0, RectangleF A_1)
at spr?.?()
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0, RectangleF A_1)
at spr?.?()
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0)
at spr?.?(RectangleF A_0)
at spr?.?(spr? A_0, spr? A_1, spr? A_2)
at spr?.?()
at spr?.?()
at spr?.?(Document A_0, List`1 A_1)
at Spire.Doc.Document.?(List`1 A_0)

If the textboxes are repositioned, no exception occurs. Valid and invalid templates are attached.

Version 9.7.3

mike.woolsoncroft
 
Posts: 14
Joined: Tue May 05, 2020 2:11 pm

Wed Jul 28, 2021 8:50 am

Hi,

Thank you for your inquiry.
I have reproduced your issue and logged it into our Bug tracking system with the ticket number SPIREDOC-6433. Our development team will investigate and fix it. Once it is resolved, I will inform you. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Mon Aug 23, 2021 11:51 am

Hi,

Thanks for your patience.
Glad to inform you that we just released Spire.Doc (Hot Fix) Version: 9.8.6 which fixes your issue SPIREDOC-6433. Please download the fix version from the following links to test.
Website link:
https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link:
https://www.nuget.org/packages/Spire.Doc/9.8.6

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Wed Sep 08, 2021 10:28 am

Hello,

Hope you are doing well!
Have you tried the new version of Spire.Doc? Does this hotfix solve your issue? Any feedback will be greatly appreciated.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Wed Sep 08, 2021 8:22 pm

Hello,

I tested and verified this is no longer an issue using version 9.8.6.

Thank you!

mike.woolsoncroft
 
Posts: 14
Joined: Tue May 05, 2020 2:11 pm

Thu Sep 09, 2021 8:57 am

Hello,

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

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1648
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc