Exception thrown when column header has specific characters

Hello,

I'm making a table using the DocIO control. When certain combinations of characters are present inside of the table header an exception is thrown and the pdf cant be displayed.

Here is the header i'm trying to use: "Mass\nlb-s2/ft"

If i do: "Mass\nlb-s2 it works as expected placing the lb-s2 on the second line.

If i do: "Mass s2/ft" it works as expected

If i do "Mass/ft" it works as expected

So the issue seems to only occur when i have a "/" character after using the \n to create a new line.

Thanks for the help.


1 Reply

DS Dharanya Sakthivel Syncfusion Team December 5, 2024 09:53 AM UTC

Hi Chris,

Based on the information provided, we found that the exception occurs when creating a table header with a specific character and converting it to PDF. We have prepared an using the given string " Mass\nlb-s2/ft " and convert it to PDF, but it is working fine at our end without any exception. We have attached the
sample we tried at our end in the attachment below.

To help us reproduce the issue on our end, kindly share a issue reproducible sample or the complete code snippet you used. Based on that, we will check further and share details.

Regards,
Dharanya.



Attachment: TablewithHeader_970cb8d5.zip

Loader.
Up arrow icon