changing the title after report is done

Hello! I need to change the title of the report after all the calculations and stuff is done in the report. According to the results i change the title. It is a text box with variable attached to it, when i change it after printing the header of the report, the title still stays the same. Any ideas?

The header will print when the first detail line is printed. You need to decide before that what it will say. If you need to do calculations to determine the header text, then they must all be done before anything is printed.

The title stays the same because it’s allready proccesed. Only solution I see is to do calculations before printing report (before section where the title is). Afterwards print-out calculated information or recalculate it. In second way report will generate twise longer [:)] -

Yep, it’s gonna take longer for sure :(. How do i sum the amount of bunch of records in the header, without displaying every single line?

You can use same Data Items with same code to sum the amount or write your own code to do this job. If you use a copy of Data Items then be sure to delete their sections. If you write your own code then put it in the OnPreReport trigger to calc sum. -

Hi, I would suggest to calculate everything in OnPreReport Trigger and save the calculated values to a virtual table (if possible), afterwards you can output the temporary table (by an integer) needing not much additional time. For sure Headers and Sections refer to this integer dataitem. Regards, Stefan

Tipp-ex [;)] Sorry

Hi I agree with Stefan and Athur. IMHO the best thing is to calculate your stuff for the header in OnInit. Or just do this: Try to print the report backwards. For more information read this topic: http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=6210 [:D] bye André