How to export Middle Eastern Languages (Arabic) from Grid to PDF ?

Exoprt Grid Pdf with arabic data source


1 Reply

JC Joseph Christ Nithin Issack Syncfusion Team November 3, 2023 09:00 AM UTC


Hi Mahmoud,


  Greetings from Syncfusion support.


  By default, Arabic text is not supported in the default format of the pdf exporting. We can overcome this issue to enable the complex script while adding Arabic text in the pdf grid.


Please refer the below code snippet,


 

PdfStringFormat stringFormat = new PdfStringFormat();

            stringFormat.ComplexScript = true;

            //Assign the string format to a row.

            for (int i = 0; i < grid.Columns.Count; i++)

            {

                grid.Rows[2].Cells[i].StringFormat = stringFormat;

            } 

 

 



Please refer the below documentation


Documentaiton: https://help.syncfusion.com/file-formats/pdf/working-with-text#drawing-complex-script-language-text


Regards,

Joseph I.




Loader.
Up arrow icon