Free Support Forum - aspose.com

'Cannot add a style because a style with the same name already exists'

Hi,

I have this error “Cannot add a style because a style with the same name already exists” when I merge documents together.

I use version 4.4.0.0 of Words.

When I remove the image in the footer, it works. But I don’t really want to remove them from all documents (saving time).

But it’s strange, not all the documents throw this exception.

So, I sent the document 122.doc who throw an exception.

Do you know why this error is throw?

This document works (96.doc) and have the same footer image.

And this is my Intro document

Tks alot

Hi

Thanks for your reporting this issue to us. I have reproduced this problem and logged it to our defect base as issue # 3658. We will try to fix it in one of future releases. The notification will be posted here in this thread as soon as it will be done.

Best regards.

The issues you have found earlier (filed as 3658) have been fixed in this update.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Issue #3658 - “Cannot add a style because a style with the same name already exists” exception occurs during inserting one document into another.

The problem occurs when destination document contains a user defined style with a name of a built in style.