I am using Telerik UI for WPF 2024 Q4\Binaries.NoXaml\WPF80\Telerik.Windows.Documents.Flow.FormatProviders.Doc.dll (version 2024.4.1106.60) on Windows 11 Pro (24H2). The program is developed using VS 2022.
It simply tries to load and display the attached DOCX file and the component crashes during layout with a null reference exception.
using var instream = File.OpenRead(path);
var openXmlRadDocProvider =
new Telerik.Windows.Documents.FormatProviders.OpenXml.Docx.DocxFormatProvider();
var raddoc = openXmlRadDocProvider.Import(instream);
RadRtb.Document = raddoc;
Word displays this perfectly. Trying to determine if this is a Telerik bug or a "me" problem.
Stenly replied and said he was unable to reproduce using 2025.2.707. I am able to reproduce the crash with that version. I have attached my project in case I'm doing something wrong in code.
Thanks.
-John Reilly.
It appears that the figure anchoring in this document crashes RadRichTextBox. If I change it from text wrapping "square" to text wrapping "in line with text", the content is rendered.
I don't think that the component should exception regardless of whether will render the document.
Hello Reilly,
I tested this with the 2024.4.1111 version, and I was able to observe the mentioned exception. I also tested the document with the latest version of our assemblies, which is 2025.2.707, and I was not able to reproduce it.
With this in mind, may I ask if it would be possible to update to it and see if the exception is still reproducible?
Thanks, Stenly. I will update ASAP and update this post. I appreciate the response.
-Reilly
Hi Stenly. Not sure how this system works.
I updated my question to include my results. I am able to reproduce using 2025.2.707 so I attached my code.
I bought a seat so I'll probably reproduce this in my account.
Thanks for looking.