HELP: How print pagetotal but not in the page bottom

Posted by: franvion on 4 August 2017, 3:15 pm EST

  • Posted 4 August 2017, 3:15 pm EST

    hi, all


    i have a question:


    i have a multipage report, and i need a field to caculate the pagetotal in each page, then the field need match the size of the paper. if the page paper contain blank area, the field should appear not in the pagefooter area, also i have another field to calculate the grandtotal which place in the reportfooter area, how will i make it?


    thx!

  • Replied 4 August 2017, 3:15 pm EST

    Hello,

    In order to get the pagetotal for a page in the report:-

    1) Add a field to the report.
    2) Set the datafield property to the field whose pagetotal you need.
    3) Set the SummaryFunc to 0-ddSFSUM
    4) Set the Summary Running to 2-ddSRAll
    5) Set the SummaryType to 4-ddSMPageCount.

    In order to get the report total for the report

     1) Add a field to the report header.
     2) Set the datafield to the field whose report total you need.
     3) Set the SummaryFunc to 0-ddSFSUM
     4) Set the SummaryType to 1-ddSMGrandTotal.

    Please take a look at the attached sample in this regard. Further, for your other requirement, please consider adding the summary fields in the PageHeader and Report Header sections.

    Regards,
    Prantik


    2009/06/Summary.zip
  • Replied 4 August 2017, 3:15 pm EST

    dear Prantik:


    thanks a lot for ur answer!


    i have read your sample report, and got another question:


    do you mean not any other way to put the pagetotal field in other section except pageheader section for my requirement?


    cause i think it's better to put it below the detail section than put over the detail section.


    any idea about this question?


    thx!


     

  • Replied 4 August 2017, 3:15 pm EST

    Hello,

    The pagefooter of the report would only be drawn at the bottom of the page. However, you could use the canvas.drawtext method to draw a string that contains the page number at any location you want. Please take a look at the attached sample in this regard.

    Regards,
    Prantik


    2009/06/DrawText.zip
  • Replied 4 August 2017, 3:15 pm EST

    a nice solution for me! thank u very much!

Need extra support?

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

Learn More

Forum Channels