Page Break generate extra page in the end of report.

13 posts, 0 answers
  1. Gurpreet Singh
    Gurpreet Singh avatar
    16 posts
    Member since:
    Jan 2010

    Posted 19 Mar 2010 Link to this post


    Hi,

    I am Using Telerik Reports. On one group i have put Page break = After.
    It is working fine for grouping and generating the page break after every group, but it generate an extra page when encounter the last group. How can i prevent this extra blank page.

    Thanks in advance..
    Gurpreet
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Mar 2010 Link to this post

    Hello Gurpreet Singh,

    This is handled internally by the report engine and should not occur. We would appreciate if you send us step by step instructions on how to replicate it or a runnable report that shows the problem.

    Kind regards,
    Steve
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Gurpreet Singh
    Gurpreet Singh avatar
    16 posts
    Member since:
    Jan 2010

    Posted 25 Mar 2010 Link to this post

    Hello,
    thanks for the help, i have followed the following steps.

    1. I have degign a report with Page header Section, Page Detail section and group footer section and Page footer section.
    2. I need to group the the record according to one field.
    3. I select a the perticular group.
    4. i changed the property of group.under groupFooter section i have change the following property
        Page break = After
    5. Now the report is working fine, It show the records of a perticular group on one page of the report and then insert the page break.
       Therefore we get the records of perticular group on one page.
       But when it encounter the last group.It again insert a page break in the last. because of this the last page is blank.

    Thanks,
    Gurpreet
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Mar 2010 Link to this post

    Hello Gurpreet Singh,

    We followed your steps but could not reproduce the problem. Can you please zip a report that we can run and observe this problem on our end? You can provide us with a link to this archive on a free file host or open a support ticket and attach it there. Once we review it, we would be able to advise you accordingly.

    All the best,
    Steve
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Amit
    Amit avatar
    2 posts
    Member since:
    Jun 2010

    Posted 17 Jun 2010 Link to this post

    Did you get a solution to this problem. I am also facing this problem in my report - an extra page towards the end of the pdf.
  7. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 18 Jun 2010 Link to this post

    Hello Amit,

    As my colleague pointed out, we are unable to reproduce that described behavior. Please send us a sample project through the support system to test it locally and we would advise you accordingly.

    Sincerely yours,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Amit
    Amit avatar
    2 posts
    Member since:
    Jun 2010

    Posted 20 Jun 2010 Link to this post

    I ll guide you how to replicate this issue:

    Create a user control. In this add a table (html) with some data on it, for example:
    <div style class="printdiv">
    <table>
    <tr>
    <td>A</td><td>XYZ</td>
    <td>A</td><td>PQR</td>
    </tr>
    </table>
    </div>

    In CSS, you have 
    .PrintDiv
    {page-break-after:always;}
    Name   Location   Age
    A XYZ 20
    B PQR  25
    ... and so on, say 5 rows you have.

    Now the reqmt is to print this table 4 times on seperate pages in a pdf document. To do this, create an aspx page and add a place holder container, in the code behind, add this user control 5 times to it. Make sure you have content disposition to print it over pdf.
    Run this and you would see that you get a blank page towards the end of the pdf.
  9. TRA
    TRA avatar
    7 posts
    Member since:
    Aug 2008

    Posted 21 Jun 2010 Link to this post

    I had a VERY similar problem.  I had a footer based on a PrimaryKey with a footer and also had a labelsgroupfooter.  I had the info that I wanted to appear after each PrimaryKey in the labelsGroupFooter instead of the PrimaryKey group footer.  Also, make sure you go into the "Groups" and make sure you set the field you want to group on.

    I hope this works.

    LB
  10. Ken
    Ken avatar
    9 posts
    Member since:
    Jan 2008

    Posted 14 May 2012 Link to this post

    hi
    I found the way to avoid page break at last group.

    first, create variable record that total of group: (sourceDataTable is report source data)
    Int32 groupTotal = sourceDataTable.AsEnumerable().GroupBy(_groupItem => _groupItem.Field<String>(GROUP_FIELDNAME)).Count();
    Int32 groupCount = 0;


    second, invoke GroupHeader.ItemDataBound,GroupFooter.ItemDataBound :
    Group _group = new Group(true);
    _group.GroupHeader.ItemDataBound += new EventHandler(this.GroupHeader_ItemDataBound);
    _group.GroupFooter.ItemDataBound += new EventHandler(this.GroupFooter_ItemDataBound);


    last, coding invoke method as follows
    void GroupHeader_ItemDataBound(Object sender, EventArgs e)
    {
      g
    roupCount ++; 
    }

    void GroupFooter_ItemDataBound(Object sender, EventArgs e)
    {
      Telerik.Reporting.Processing.GroupSection processingSection = (Telerik.Reporting.Processing.GroupSection)sender;
      if (groupCount >= groupTotal)
      {
       processingSection.PageBreak = PageBreak.None;
      }
    }

    regard

    ken
  11. Senthil
    Senthil avatar
    19 posts
    Member since:
    Aug 2012

    Posted 20 Aug 2013 Link to this post

    Set Page Break in labelgroup-footer and set Visible False. The Extra Page does not generate



    Regards,
    D.SENTHIL
  12. deepak
    deepak avatar
    3 posts
    Member since:
    Nov 2015

    Posted 04 Mar Link to this post

    I am using Telerick Reports.I had put page break and keep together in all section,but still i get the blank page after each page.Please give me a solution to fix this issue.

    Thanks in Advance,

    Deepak

  13. Stef
    Admin
    Stef avatar
    3041 posts

    Posted 08 Mar Link to this post

    Hello Deepak,

    Please check the Understanding Pagination article, and check which item/section causes the additional blank pages by adding borders and colors. If it is an item growing in width beyond the available physical space, try adjusting the report's PageProperties like Margins, PaperKind, PaperSize.

    In case there are items growing in width and pushing other items to the right, test organizing items in Panel items - Design Considerations for Report Item Layout.


    I hope this information is helpful.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  14. Senthil
    Senthil avatar
    19 posts
    Member since:
    Aug 2012

    Posted 08 Mar Link to this post

    Can you attach the sample pdf document for reference. If set keep together true sometimes create extra pages on end of the report. if you set false to try that. If not fixed please attach same doc generated.

     

    Thanks,

    Sentil

Back to Top
DevCraft banner