Last Updated:
14 Sep 2022 13:52
by ADMIN
WordsProcessing: InvalidCastException is thrown when exporting to PDF of calling UpdateField(s) method when a document contains hyperlink before bookmark
When a document containing a hyperlink before bookmark and it is exported to PDF or UpdateField(s) method is called an exception is thrown: "System.InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.Model.Editing.Layout.HyperlinkEndLayoutElement' to type 'Telerik.Windows.Documents.Fixed.Model.Editing.Layout.TextFragmentLayoutElement'.'"