Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

Migration from 2 to 3 for RelationshipErrorHandlerFactory?

Open larrybud2004 opened this issue 7 months ago • 5 comments

You state in the changelog from version 2 to 3

"Removed OpenXmlSettings.RelationshipErrorHandlerFactory and associated types and replaced with a built-in mechanism to enable this"

I cannot find any documentation on how to handle this when migrating. Can you point us in the right direction please? Specifically trying to rewrite a RelationshipErrorHandler.

larrybud2004 avatar Jan 08 '24 14:01 larrybud2004

Can you share what you were doing with RelationshipErrorHandlerFactory?

twsouthwick avatar Jan 08 '24 19:01 twsouthwick

Yes, I was using the RelationshipErrorHandler

larrybud2004 avatar Jan 08 '24 20:01 larrybud2004

Can you share a code snippet of what you were doing and describe the scenario?

twsouthwick avatar Jan 08 '24 20:01 twsouthwick

Yes, this:

https://stackoverflow.com/questions/29970814/openxml-excel-throw-error-in-any-word-after-mail-address/64811821#64811821

Perhaps this is now just handled in version 3?

larrybud2004 avatar Jan 08 '24 20:01 larrybud2004

Correct - it should just work where possible. I'll leave this open to track doc updates. Also, looks like someone found a bug in it with #1636 in case it affects you

twsouthwick avatar Jan 08 '24 21:01 twsouthwick