Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142011 | Jan 14,2019 07:51 PM UTC | Jan 20,2019 08:51 PM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfDataGrid |
DataGridPdfExportOption dataGridPdfExportOption = new DataGridPdfExportOption();
//To Fit all the columns in one page.
dataGridPdfExportOption.FitAllColumnsInOnePage = true;
PdfDocument document = new PdfDocument();
//To Place the grid the grid where we want.
document.PageSettings.SetMargins(250, 350,0,0);
PdfGrid grid = new PdfGrid();
grid = pdfExport.ExportToPdfGrid(dataGrid, this.dataGrid.View, dataGridPdfExportOption, document);
grid.Style.AllowHorizontalOverflow = false;
PdfPage pdfPage = document.Pages.Add();
grid.Draw(pdfPage, new RectangleF(0, 0, 0, 0));
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.