Throws Error When Pasting Content from from Microsoft Word Document in Document

I am getting this error when I paste microsoft Word Contents in Document

"The ':' character, hexadecimal value 0x3A, cannot be included in a name. Line 80, position 96."

3 Replies

SB Sneha Biju Syncfusion Team November 17, 2023 12:34 PM UTC

Hi Dheer Gupta,

From the given details, we are unable to identify the exact cause of the problem which you are facing. In order to narrow down this issue and identify the exact cause, could you please share us the complete details about the problem which facing at your end and approach which doing in your application. 


1. Which Syncfusion control are you using (DocIO or Document Editor)?
2. Code snippet or issue reproduceable sample, to replicate the same issue at our side.
3. Input documents used.
4. Environment details(e.g. operating system, if it is Linux or Docker, please provide more details) and the deployment procedure used for the application.
5. Stack trace and error log related to the problem.

Based on the above details, we will investigate the mentioned problem and provide an appropriate solution as soon as possible.

Regards,
Sneha.



DG Dheer Gupta November 17, 2023 12:49 PM UTC

Hi Sneha,

I am facing this Issue in the Doc IO. The Issue I am facing is due to when I am pasting the content in Rich Text Editor and then inserting it in DocIO using InsertXHTML Method. and this is the Error I am Getting  "The ':' character, hexadecimal value 0x3A, cannot be included in a name. Line 80, position 96." ​. I will share you the code snippet in some time. Till then if you check 




AA Akash Arul Syncfusion Team November 20, 2023 05:59 PM UTC

Dheer, We suspect that your requirement is to copy the Microsoft content, paste it into the Rich Text Editor, and insert that HTML into a Word document using the InsertXHTML method in DocIO. The following error, "The ':' character, hexadecimal value 0x3A, cannot be included in a name. Line 80, position 96," may not occur in all cases. It will occur based on the content. Could you please share the code snippet and input document to further validate and provide the appropriate solution as soon as possible?


Loader.
Up arrow icon