We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

data split between 2 pages

I am generating a pdf document. Issue i am coming across is that at times my table is divided between 2 pages. Is there a way to determine that if i am close to the end of page 1, then i want to draw my table on page 2 . i..e if the entire table cannot fit on page 1 then draw it on page 2.



5 Replies

JB jb replied to jb March 6, 2015 10:30 PM UTC

I am generating a pdf document. Issue i am coming across is that at times my table is divided between 2 pages. Is there a way to determine that if i am close to the end of page 1, then i want to draw my table on page 2 . i..e if the entire table cannot fit on page 1 then draw it on page 2.



I am using PdfGridRow.Cells[] to add various row and column values

then i use PdfGridRow(PDfPage,0,0) 

PDFDocument.save(filename)




KK Karthik Krishnaraj Syncfusion Team March 9, 2015 12:54 PM UTC

Hi JB,

Thank you for using syncfusion products,

Inorder to achieve it we need to set PdfLayoutType as paginate in the Layout Property of the PdfGridLayoutFormat class. I have attached an online documentation link below, please check with this and let me know if these helps.

Code Snippet:

//Creates a grid layout format

PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat();

//Allows the grid to paginate across pages.

layoutFormat.Layout = PdfLayoutType.Paginate;

pdfGrid.Draw(pdfPage, PointF.Empty, format)

 

Online Documentation Link:

http://help.syncfusion.com/UG/winrt/default.htm#!documents/pdfgridcreation.htm

 

Thanks,

Karthik.



JB jb replied to Karthik Krishnaraj March 10, 2015 04:12 PM UTC

Hi JB,

Thank you for using syncfusion products,

Inorder to achieve it we need to set PdfLayoutType as paginate in the Layout Property of the PdfGridLayoutFormat class. I have attached an online documentation link below, please check with this and let me know if these helps.

Code Snippet:

//Creates a grid layout format

PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat();

//Allows the grid to paginate across pages.

layoutFormat.Layout = PdfLayoutType.Paginate;

pdfGrid.Draw(pdfPage, PointF.Empty, format)

 

Online Documentation Link:

http://help.syncfusion.com/UG/winrt/default.htm#!documents/pdfgridcreation.htm

 

Thanks,

Karthik.


hi karthik,
thanks for the code. am trying it.
the issue i was observing was that the current code would split a row between 2 pages.

and in my version i cannot do PDFGrid.AllowRowBreakAcrossPages




JB jb replied to jb March 10, 2015 04:17 PM UTC

Hi JB,

Thank you for using syncfusion products,

Inorder to achieve it we need to set PdfLayoutType as paginate in the Layout Property of the PdfGridLayoutFormat class. I have attached an online documentation link below, please check with this and let me know if these helps.

Code Snippet:

//Creates a grid layout format

PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat();

//Allows the grid to paginate across pages.

layoutFormat.Layout = PdfLayoutType.Paginate;

pdfGrid.Draw(pdfPage, PointF.Empty, format)

 

Online Documentation Link:

http://help.syncfusion.com/UG/winrt/default.htm#!documents/pdfgridcreation.htm

 

Thanks,

Karthik.


hi karthik,
thanks for the code. am trying it.
the issue i was observing was that the current code would split a row between 2 pages.

and in my version i cannot do PDFGrid.AllowRowBreakAcrossPages



syncfusion.core = 8.404.0.10
syncfusion.pdf.base = 8.404.0.10


KK Karthik Krishnaraj Syncfusion Team March 11, 2015 12:15 PM UTC

Hi JB,

We have included AllowRowBreakAcrossPages property only after (9.4.0.62). So please upgrade to latest version to get access to this property, please let me know if you have any concerns.

Link:

https://www.syncfusion.com/downloads/latest-version

Thanks,

Karthik.


Loader.
Live Chat Icon For mobile
Up arrow icon