| |
ActiveReports 2.0 (Visual Basic 6.0) Support
Started by franvion at 06-23-2009 2:28 AM. Topic has 4 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
06-23-2009, 2:28 AM
|
franvion
Joined on 06-23-2009
Posts 3
|
HELP: How print pagetotal but not in the page bottom
|
|
|
|
|
|
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!
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 12:18 PM
|
PrantikS
Joined on 12-11-2008
Posts 758

|
Re: HELP: How print pagetotal but not in the page bottom
Attachment: Summary.zip
|
|
|
|
|
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
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 7:05 PM
|
franvion
Joined on 06-23-2009
Posts 3
|
Re: HELP: How print pagetotal but not in the page bottom
|
|
|
|
|
|
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!
|
|
|
|
|
Report
|
|
|
|
06-24-2009, 10:33 AM
|
PrantikS
Joined on 12-11-2008
Posts 758

|
Re: HELP: How print pagetotal but not in the page bottom
Attachment: DrawText.zip
|
|
|
|
|
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
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » ActiveReports 2... » HELP: How print pagetotal but not in the page bottom
|
|
|
|
|