We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to export Middle Eastern Languages (Arabic, Hebrew) from SfDataGrid to PDF ?

Platform: WPF |
Control: SfDataGrid |
.NET Framework: 4.5.1

SfDataGrid exports the data to PDF by using Syncfusion PDF component. By default, exporting Middle Eastern Languages (Arabic, Hebrew) are not supported in PDF. You can refer here to know about exporting the Middle Eastern Languages to PDF.

By using CellsExportingEventHandler in PdfExportingOptions, you can customize each cell when exporting into PDF and refer here to know about PdfExportingOptions.

In general, Arabic language is written from right to left. Here, Arabic languages are displayed in SfDataGrid from right to left as follows.

Figure 1: Arabic text in SfDataGrid

By default, Arabic languages in SfDataGrid are exported as left to right in PDF. You can export the Arabic language as displayed in SfDataGrid (export from Right to Left) by enabling RightToLeft property in PdfStringFormat and apply the format to the PdfGridCell by using CellsExportingEventHandler.

You can refer to the following code example to customize each cell when exporting SfDataGrid into PDF by using CellsExportingEventHandler.



The following screenshot displays the Arabic text exported to PDF in right to left format.

Figure 2: Arabic text exported to PDF

You can refer to the sample from the following location.

Sample link: FlowDirectionExportPDF_WPF

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile