Not able to delete blank spaces in the report

Posted by: anuja.puranik on 22 November 2019, 2:59 pm EST

    • Post Options:
    • Link

    Posted 22 November 2019, 2:59 pm EST

    Hello,

    I am working on a report which calls a subreport internally.

    The call is being made in detail_format() method. I want to add 2 text boxes only at the last page of the report. We have set a counter to get number of rows from subreport and when the counter ==0 print the textboxes.

    Issue is even though counter is 0, and if data doesn’t fit in the current page…it prints another page and I am not able to get total number of page count. That is the reason my two text boxes are being printed twice.

    Also, I am not able to trigger reportend() method.

    I have done following changes till now:

    This.detail.canshrink=true;

    this.subreportdetail.canshrink=true;

    bottom textboxes.canshrink=true;

    Please help!! Thank you in advance.

  • Posted 25 November 2019, 7:27 am EST

    Hello,

    Can you please share your stripped down sample?

    This will help me observe the issue and resolve the same for you.

    Thanks,

    Esha

  • Posted 25 November 2019, 12:44 pm EST - Updated 30 September 2022, 5:26 pm EST

    Hello,

    So this is a sample of what the report looks like. Even though there is enough page on second last page, new record is printed on the last page and footer is printed twice.

  • Posted 25 November 2019, 4:51 pm EST

    Also, I was reading about adding ReportFooter section in the report. I have professional edition of Active reports v10 and I am not able to right click and find “Insert” option on report.

    I wanted to add Report Footer in order to try fixing the issue. Any help on this will be really appreciated.

    Thanks,

  • Posted 26 November 2019, 3:37 am EST

    Hello,

    >>Also, I am not able to trigger reportend() method.

    ReportEnd method renders fine, in general. Could you please add a breakpoint and see if the rendering happens (using some MessageBox within the method)?

    As per the layout, it appears that you have used the textbox fields in the Detail section of the subreport. Please place them in the ReportFooter (that renders once at the end of the report) to meet your requirement.

    >>I have professional edition of Active reports v10 and I am not able to right click and find “Insert” option on report.

    Please ensure that your VS is compatible with ActiveReports version that you use.

    https://help.grapecity.com/activereports/webhelp/AR10/webframe.html#Requirements.html

    Kindly share the Visual Studio version and exact AR10 version you use at your end.

    You can also check your projects with the latest AR10 version, available here:

    https://cdn.grapecity.com/ActiveReports/ar10/ActiveReports-v10.3.9175.0.msi

    In case this does not help, you can also add the ReportFooter at runtime.

    private GrapeCity.ActiveReports.SectionReportModel.ReportFooter ReportFooter1= new GrapeCity.ActiveReports.SectionReportModel.ReportFooter();
    this.ReportFooter1.Height = 1.5F;
    this.ReportFooter1.Name = "ReportFooter1";
    this.Sections.Add(this.ReportFooter1);
    

    And then, add the textbox fields to the same at runtime.

    Thanks,

    Esha

  • Posted 26 November 2019, 10:56 am EST

    Hello,

    Thank you for your reply. We are using Visual studio 2017. Is there a way, where we can add Report Footer without right clicking and clicking “Insert”. Can we edit the report in any other way to add Report Footer.

  • Posted 27 November 2019, 7:33 am EST

    Hello,

    You can add the ReportFooter to the designer.cs file, as shown in the attached gif. Note that headers and footers go hand-in-hand and thus, you may want to add the ReportHeader too, in the same manner.

    There is no other way to do so.

    Regards,

    Esha

    Demo1.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels