Guys:
How can I define a report footer that only prints on the last page ? Thank you.
Guys:
How can I define a report footer that only prints on the last page ? Thank you.
Have a try with oReport:bPostEnd := { || PrintWhatYouWant() }
ACTIVATE REPORT oReport ON STARTPAGE IIF( lPrint=.f.,( lPrint := .t., graph2(oReport,aBeschriftung,aReihe1)), );
ON END (;
oReport:Say(5, transform( 100*( oReport:aColumns[3]:ntotal / ( AnzahlBetten * ( datum2-datum1 ) ) ) ,;
"@E 9999999.99") ,2 ,RPT_RIGHT , oReport:nRow + 20),;
oReport:Say(6, transform( 100*( (oReport:aColumns[3]:ntotal +oReport:aColumns[4]:ntotal) / ( AnzahlBetten * ( datum2-datum1 ) ) ),;
"@E 9999999.99"), 2, RPT_RIGHT, oReport:nRow + 20) ,;
oReport: Say( 1, "Vollbelegstage: ERW" + str(ROUND(oReport:aColumns[3]:ntotal / ( AnzahlBetten ),0)) , 1, , oReport:nRow + 120 ) )Otto, ADutheil:
Thank you very much. Worked flawlessly.