Export multiple DataGrid source into single pdf file

Hello Expert,

Let said, If I have 2 DataGrids which totally different column headers and Dataset. Actually, I can export to pdf file from each Datagrid into 2 pdf files separately by using Datagrid.PdfExport

The questions are below.

1) How to export to pdf like a combination of 2 Datagrid into 1 pdf file?

     For example page 1, 2, 3 for Datagrid1 and continues to create new page 4, 5 for Datagrid2

2) Can we still count the paging number and show it in the footer of single pdf files?

Best Regards,

Werachat



5 Replies 1 reply marked as answer

MS Monisha Saravanan Syncfusion Team May 3, 2022 11:19 AM UTC

Hi Werachat,


Thanks for the update.


Currently we are validating your query at our end and we will update further details within two business days on or before (05.05.2022). Until then we appreciate your patience.


Regards,

Monisha



WN Werachat Nawaroongruang May 3, 2022 05:34 PM UTC

Hi Monisha,

Thanks for the update. Looking forward to seeing your reply.

Best Regards,

Werachat



MS Monisha Saravanan Syncfusion Team May 5, 2022 09:09 AM UTC

Hi Werachat,


Thanks for the patience.


We would like to inform that we don’t have direct support to achieve your requirement. Instead we suggest you to achieve your requirement by using below way.


Here we have created a Blazor Pdf export sample for creating a multiple PDF grid sequentially with page number at bottom of the PDF document. We can maintaining the position of a PDF grid drawn on PDF page using PdfGridLayoutResult. It provides the rendered bounds of previously added grid, which can be used to place successive elements without overlapping. You can add multiple PDF grids using the bottom position of previously rendered PDF grid. 


https://help.syncfusion.com/file-formats/pdf/working-with-tables#adding-multiple-tables

https://www.syncfusion.com/kb/9548/how-to-draw-grid-in-a-pdf-using-c-and-vb-net

https://www.syncfusion.com/kb/11759/how-to-insert-table-without-overlapping-header-and-footer-in-pdf-document


We have attached the sample and output document for your reference, please find the sample from below,
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorPDFGettingStarted1176777252

Output: https://www.syncfusion.com/downloads/support/directtrac/general/pd/ExportSample-553528307


Please get back to us if you have further queries.


Regards,

Monisha


Marked as answer

WN Werachat Nawaroongruang May 5, 2022 03:24 PM UTC

Hi Monisha,

Thank you very much. That's very useful and informative.

I will try it out.

Best Regards,

Werachat



MS Monisha Saravanan Syncfusion Team May 6, 2022 04:22 AM UTC

Hi Werachat,


Welcome. Kindly get back to us if you have further queries. As always we will be happy to assist you.


Regards,

Monisha


Loader.
Up arrow icon