[RadDocument] Crash when C/P a document from word with chips

5 Answers 10 Views
Window
Dedalus
Top achievements
Rank 1
Iron
Iron
Dedalus asked on 04 Oct 2025, 06:27 PM

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;

Dimitar
Telerik team
commented on 06 Oct 2025, 05:24 AM

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.

5 Answers, 1 is accepted

Sort by
0
Dedalus
Top achievements
Rank 1
Iron
Iron
answered on 07 Oct 2025, 08:58 AM

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.

Dimitar
Telerik team
commented on 07 Oct 2025, 10:06 AM

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.

0
Dedalus
Top achievements
Rank 1
Iron
Iron
answered on 07 Oct 2025, 10:14 AM | edited on 07 Oct 2025, 10:14 AM
That's what I just dit, thanks and let me know if you found something. 
Dimitar
Telerik team
commented on 07 Oct 2025, 10:57 AM

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.

0
Dedalus
Top achievements
Rank 1
Iron
Iron
answered on 07 Oct 2025, 11:32 AM

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.

Dimitar
Telerik team
commented on 07 Oct 2025, 12:34 PM

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"));

0
Dedalus
Top achievements
Rank 1
Iron
Iron
answered on 07 Oct 2025, 12:40 PM | edited on 07 Oct 2025, 12:40 PM
You have successfully reproduce the crash ? Because in our case, it's a copy / paste. So it force us to do an evolution to our product if we have to use this process. 
Dimitar
Telerik team
commented on 08 Oct 2025, 05:01 AM

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

 

0
Dedalus
Top achievements
Rank 1
Iron
Iron
answered on 08 Oct 2025, 05:32 AM

Hi Dimitar,

It's fine, thanks for the repro & creating the ticket. We will track it.

Have a good day !

Tags
Window
Asked by
Dedalus
Top achievements
Rank 1
Iron
Iron
Answers by
Dedalus
Top achievements
Rank 1
Iron
Iron
Share this question
or