Hi
Faysal,
Thank
you for contacting Syncfusion Support.
Yes
, it is possible to generate grid to pdf file by using ExportToPdf() method as shown
in the following code snippet:
Code
Snippet:
PdfDocument
document = new PdfDocument();
document = datagrid.ExportToPdf();
var
savePicker = new FileSavePicker { SuggestedFileName = "file1", SuggestedStartLocation = PickerLocationId.Desktop
};
savePicker.FileTypeChoices.Add("Pdf Files(.pdf)", new List<string>() { ".pdf" });
var
storageFile =await savePicker.PickSaveFileAsync();
if (storageFile != null)
await
document.SaveAsync(storageFile);
|
Please
let us know if this solution helps you.
Regards,
Jayapradha
S