How can I control page breaks in large reports?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v6)  /  How can I control page breaks in large reports?

DynamicPDF CoreSuite for .NET (v6) Forum

Hi there,

We are using Dynamic PDF to generate a pdf report for our expense reports.  We developed an in-house .net application that leverages your Dynamic PDF Generator for .Net to create a PDF report of the completed expense claim.  From there the end user prints off the PDF and submits it for approval. 

The problem we are having is around large expense claims.  If there are, for example, 12-15+ line items in the expense report, it will create 2 pages in the PDF file as there are too many items for it all to fit on the page.  So what is happening for me now, is that the first page is only half filled out and the 2nd page of the pdf is full.  I'd like for it to be the other way around.  The 1st page gets completely filled out with line items in the expense report before it adds the remaining items to the 2nd page - which would in this case would only be half full. 

I want to know if there's a way to insert a page break programatically maybe using .NET or something depending on the number of items (or rows) being returned from the database for the report?  Hopefully this makes sense.  Basically for large expense claims, the 1st page is half filled out while the 2nd page is completely filled out.  Not sure why it's doing that or if there's a solution for my problem.  Any help would be greatly appreciated!

Thanks
Dave

Ps - love the product! 
Posted by a ceTe Software moderator
Hello Dave,

The code you are using to create that report would help us determine the reason for the behavior you are describing. Please send the following information over to us at support@cete.com so we can look into this issue and advise you accordingly.

1. Code used to generate the report.
2. A copy of the PDF report.
3. Version and build of DynamicPDF dll used. 

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 8:18 PM.