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.
Unfortunately, activation email could not send to your email. Please try again.

data split between 2 pages

Thread ID:

Created:

Updated:

Platform:

Replies:

118422 Mar 6,2015 10:11 AM Mar 11,2015 08:15 AM Windows Forms 5
loading
Tags: PDF
jb
Asked On March 6, 2015 10:11 AM

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.



jb
Replied On March 6, 2015 05:30 PM

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)



Karthik Krishnaraj [Syncfusion]
Replied On March 9, 2015 08:54 AM

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
Replied On March 10, 2015 12:12 PM

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
Replied On March 10, 2015 12:17 PM

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

Karthik Krishnaraj [Syncfusion]
Replied On March 11, 2015 08:15 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;