Hello everyone,
When I C/P a document from Word to our logiciel I have this crash :
System.ArgumentNullException: La valeur ne peut pas être null. Nom du paramètre : NumStyleLink points to not existing NumberingStyle.
From my little investigations, I've see one points to StyleLink and the other NumStyleLink.
If you have any thoughts I'll be glad to here theses.
Thanks !
Olivier;
5 Answers, 1 is accepted

Hi,
I can't because it's a Word document (so I can't upload it). It not happens with a brut text document.
The bug happens when I C/P a document with a list of puces. I think the bug is here with any types of document while it has a list of puces.
Hi Dedalus,
Yes, it cannot be uploaded directly, but you can add it to a ZIP archive and then upload it.
Let me know how this works for you.

Hi Dedalus,
I have tested this, and the document is opened without issues on my side. Can you specify the exact version of the suite that you are using? Can you share the code used for importing?
I am looking forward to your reply.

We are using 2025.3.813 Telerik version. And the code is on the import or export with XamlProvider.
Here an example : var doc = XamlProvider.Import(str);
And we have a crash on this line when we C/P the document from Word directly.
Hi Dedalus,
You should import the file using the DocxFormatProvider. Here is an example:
var docxFormatProvider = new DocxFormatProvider();
var document = docxFormatProvider.Import(File.ReadAllBytes("Test.docx"));

Hi Dedalus,
Now, when I tried to copy and paste the document's content, I was able to reproduce this issue. Indeed, there is an issue with our implementation. I have logged it on your behalf. You can track its progress, subscribe to status changes, and add your comment here: RichTextBox: Exception when pasting content with a custom list style that is not font in the document. I have updated your Telerik points for this report.
I am afraid I cannot suggest a workaround for this.
Thank you for your understanding

Hi Dimitar,
It's fine, thanks for the repro & creating the ticket. We will track it.
Have a good day !
Hi Dedalus,
I was unable to find an issue with a similar exception message in our backlog. Would it be possible to attach a sample document that we can use to reproduce this? If you prefer, you can open a new ticket and attach the actual document there (since it is a private thread).
Thank you in advance for your patience and cooperation. I am looking forward to your reply.