PdfGrid: How to add page manually

Hi,

I am reading a DataTable with time records like this:
Date, User, Customer, Project, Activity, Hours, Amount, Description

The data are ordered by Customer, Project, Date.
With this data I create a PDF with PdfGrid, Headers on each page, pagination on the footer ...

So far it works fine.

Now I want to create a new page when customer changes with sums of hours and amount on the bottom of the PdfGrid..

But I don't know how to bring the PdfGrid with the new customer data on the new page.

Thank you for your help.

Kind regards
Jörg

12 Replies 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team February 24, 2021 01:33 PM UTC

Hi Jörg, 
 
Thank you for contacting Syncfusion support.   
   
Kindly please share more details about your requirement, So, that it will be helpful for us to analyze and assist you further on this.      
   
  • New customer data will be in a separate table or another row of the same table?
  • Please explain or share details about this “customer changes with sums of hours and amount on the bottom of the PdfGrid” 
  • Expected screenshot of your requirement. 
 
Regards, 
Gowthamraj K  



Jörg February 24, 2021 03:27 PM UTC

Hi Gowthamraj,

thanks for your answer. I've attached a PDF as it will be created at the moment.
I fill the whole data from mysql table to DataTable. 
The third column with header Kunde is the customer column. 
The 8th column "Menge" contains the quantity, the 9th column "Betrag" the amount.
I want to have the rows for one customer on one page of the PDF with sums of quantity and amount below the rows.
It don't have to be on the footer.
So on the first page there would be 6 records with customer "brax", on the second page 5 records with customer "lerros" and so on.

Regards,
Jörg 


Attachment: CAMACproject_Timerecordreport_22.02.2021.pdf_6c37297f.zip


GK Gowthamraj Kumar Syncfusion Team February 25, 2021 02:15 PM UTC

Hi Jörg, 

Thank you for sharing the details. 

Currently, we are checking the provide sample document in our end and we will update the details by February 26th 2021.  

Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team March 1, 2021 05:10 PM UTC

Hi Jörg,  

Thank you for your patience.  

Currently, we are analyzing your requirement with provided PDF document and we will update the further details on March 3rd 2021. 

Regards,  
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team March 3, 2021 05:02 PM UTC

Hi Jörg,   

Sorry for the inconvenienced caused. 

We are still analyzing your requirement with provided PDF document, as it requires much deeper analysis on this and we will update the further details on March 5th 2021.  

Regards,   
Gowthamraj K  



GK Gowthamraj Kumar Syncfusion Team March 5, 2021 05:56 PM UTC

Hi Jörg, 
 
Thank you for your patience. 
 
At present, we do not have support to calculate the sum value of the pdf Grid cells automatically. As a workaround, we can achieve this as manually by iterating the grid cell in a loop and sum the value based on the customer column “Kunde. Currently, we are working this sample creation to achieve your exact requirement on our end and we will update the sample on March 10th 2021. 
 
Regards, 
Gowthamraj K 



Jörg March 5, 2021 06:11 PM UTC

Hi Gowthamraj,

thanks for the information. 
I didn't want that you have so much work with my request.
The main topic of my question is the overflow of PDFGrid depending of the data. In my example I want to bring the data of each customer to a new page. I can do the calculation of the sum value with the DataTable. Another workaround could be to have a new PDF for each customer.

Regards,
Jörg


SL Sowmiya Loganathan Syncfusion Team March 8, 2021 12:07 PM UTC

Hi Jörg,   

As promised earlier in our update, as a workaround we will achieve your requirement manually by iterating the grid cell in a loop and create the table for the each customer with sum the value based on the customer column “Kunde” and update the sample by March 10, 2021.   

Regards,  
Sowmiya Loganathan  




SL Sowmiya Loganathan Syncfusion Team March 10, 2021 01:15 PM UTC

Hi Jörg,   
 
We have created the sample to achieve your requirement of “Add data of each customer to a new page and new PDF document with calculation of sum”. Please find the download link for the same from below,   
 
 
Please try the above sample in your end and let us know if you need any further assistance on this.   
 
Regards,  
Sowmiya Loganathan  



Jörg March 10, 2021 01:18 PM UTC

Hi Sowmiya,

thanks. Unfortunately I have no access to the both links.

Regards,
Jörg


SL Sowmiya Loganathan Syncfusion Team March 11, 2021 10:27 AM UTC

Hi Jörg,   

Sorry for the inconvenience.   

Please find the download link for sample and output document from below,   


Regards,  
Sowmiya Loganathan   


Marked as answer

Jörg March 11, 2021 05:51 PM UTC

Hi Sowmyja,

thank you for your support. With different PdfGrids that works for me.

Regards,
Jörg

Loader.
Up arrow icon