Export Feature is not working Properly.

Hi Team,

As per your documentation and given example, I have implemented the export(Excel, PDF) feature for the grid. But unfortunately exporting a data is not working properly. comparing the Excel export data and PDF export data columns are not the same.  

I have following columns in the grid :

1. OrderID
2. OrderDate
3. CustomerID
4. Freight
5. ShipName
6. ShipCity
7. ShipAddress
8. ShipRegion
9. ShipPostalCode
10. Verified

Since I export the data from Excel export, it is working fine, but when I exported the data from PDF export, the following columns are not displayed.

1. ShipCity
2. ShipAddress
3. ShipRegion
4. ShipPostalCode
5. Verified

Do I need to add any properties for this? 

Here I have attached the exported file for your reference.

Kindly let me know your solution.  

Attachment: Export_75ecd7e0.rar

1 Reply

IR Isuriya Rajan Syncfusion Team March 26, 2018 06:17 AM UTC

Hi Anandraj, 
Thanks for contacting Syncfusion support, 

While checking your attachment , your mentioned columns was exported in 2 and 3 pages in PDF export . We  suspect that do you want show the all grid column in single page in pdf export. If yes we have property called  “PageSize” using that you can set your export pageSize. 

toolbarClick(args: ClickEventArgs): void { 
        if (args.item.id === 'Grid_pdfexport') {             let pdfExportProperties: PdfExportProperties = { 
                pageSize: 'A1' 
            }; 
            this.grid.pdfExport(pdfExportProperties); 
        } 


Refer below sample and documentation for your reference: 




Regards, 
Isuriya R 


Loader.
Up arrow icon