Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Oct 19, 2021 12:03 pm

Hi,

I created a PdfGrid with repeated headers following your guide online.
The problem is that my data, having lot of content, spans over more than one row.
If the last cell is split over two pages, the header is not repeated
HeaderNotRepeated.PNG

If play with the font size so that the last cell is not split, the header is correctly repeated
HeaderRepeated.PNG


Of course I have no control over the data, so my question is: can I force cells not to be split across multiple pages?

Thanks,

Francesco

f.mazzurco
 
Posts: 13
Joined: Thu Aug 30, 2018 7:57 am

Tue Oct 19, 2021 12:27 pm

quick update: I found out about the
Code: Select all
PdfGridRow.AllowCrossPages
option which solves my problem.
Before, I had only tried the set it globally at the grid level
Code: Select all
PdfGrid.AllowCrossPages
, but that was of no help.

Feel free to close the issue.

Thanks

Francesco

f.mazzurco
 
Posts: 13
Joined: Thu Aug 30, 2018 7:57 am

Wed Oct 20, 2021 1:12 am

Hello,

Glad to hear that you solved the issue. If you encounter any issues related to our products in the future, just feel free to contact us.
Wish you all the best!

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF