I am trying to build a large document with heavy use of DocumentBuilder.ImportNode with KeepSourceStyles option.
It works well but the final document has a large number (hundreds) of duplicated styles (e.g. ListItem_1, ListItem_2, ListItem_3, … ListItem_356, Normal1 … Normal 400).
This makes manual editing harder for final users.
Is there any way to collapse these redundant styles?
Thanks for additional information. I think this is a bug. I have logged this problem into our defect base as issue # 3644. We will try to fix this problem in one of future releases. The notification will be posted here in this thread as soon as it will be done.
Best regards.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.