Error when DataGridPdfExportOption exportOption apply to var doc = pdfExport.ExportToPdf(atable, exportOption);

Hi!

I'm decide to use a DataGridPdfExportingController for export SFDataGrid to PDF document.
When I define a PdfDocument options, for example

exportOption.PdfDocument.PageSettings.Orientation = PdfPageOrientation.Landscape;
exportOption.PdfDocument.PageSettings.Size = PdfPageSize.A4;

the application make exeption - null.

And same optinos - exportOption.FitAllColumnsInOnePage = true; - working
But  exportOption.ExportColumnWidth = false; - crush

Must I do something exept 
DataGridPdfExportingController pdfExport = new DataGridPdfExportingController();
and
DataGridPdfExportOption exportOption = new DataGridPdfExportOption();  for pdfexport ??

Thanks !




1 Reply

IM Indhumathy Malayappan Syncfusion Team April 6, 2017 02:43 PM UTC

Hi IgorKuznetsov,

Thanks for contacting Syncfusion Support,

We have checked your requirement “Landscape mode is not working while exporting the grid to PDF” as a defect and we have fixed the reported issue from our side.

A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents 


Regards,
Indhumathy M 


Loader.
Up arrow icon