2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
By default, exporting Middle Eastern Languages (Arabic, Hebrew) are not supported in PDF document. By setting native language font to PdfTrueTypeFont on CellsExportingEventHandler of DataGridPdfExportingController, you can export the Middle Eastern Languages from SfDataGrid in PDF document. private void Button_Clicked(object sender, EventArgs e) { DataGridPdfExportingController pdfExport = new DataGridPdfExportingController(); Stream fontStream = typeof(MainPage).GetTypeInfo().Assembly.GetManifestResourceStream("DataGridDemo.Amiri-Regular.ttf"); pdfTrueTypeFont = new PdfTrueTypeFont(fontStream, 5); pdfExport.CellExporting += PdfExport_CellExporting; } private void PdfExport_CellExporting(object sender, DataGridCellPdfExportingEventArgs e) { if (e.CellType == ExportCellType.HeaderCell) { e.PdfGridCell.Style.Font = pdfTrueTypeFont; } } |
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.
I downloaded the code in the link: https://github.com/syncfusion/xamarin-demos/tree/master/Forms/DataGrid, it's work, but i change target Framework = android 11, app can't export pdf because rule of android 11.
Hi Minh,
As you mentioned the issue occurred only in Android 11. Currently we don’t have the mentioned android 11 device. We will validate the reported issue in the specific environment and update you the details in two business days (January 11, 2021). We appreciate your patience until then.
Regards, Pradeep Kumar B