Report group and header
Posted: Mon Feb 24, 2025 1:33 pm
On report sample 10 (rep10.prg)
I saw there is the command for make a group
If I wish create a dialog before the rep10.prg and make a selection by user for select with a combobox the group comand How I must make ?
sample
How do I connect the user's choice to the group that has to make the report class?
then on header ( rep10)
I with insert the pages and the total pages
I tried with
local nTotalpages:= oReport:oDevice:cLastPage
HEADER ' ', "Data: "+dtoc(date())+ " Pagina.: "+str(oReport:nPage,3)+"/"+nTotalpages
But not run
I saw there is the command for make a group
Code: Select all | Expand
GROUP ON Test->State ;
FOOTER "Total State "+oReport:aGroups[1]:cValue+ ;
" ("+ltrim(str(oReport:aGroups[1]:nCounter))+")" ;
FONT 2 ;
EJECT
If I wish create a dialog before the rep10.prg and make a selection by user for select with a combobox the group comand How I must make ?
sample
Code: Select all | Expand
@ 12, 10 COMBOBOX oRag[2] VAR nGroup ITEMS aGroup OF oDlgOptions SIZE 300, 30 PIXEL FONT oFont HEIGHTGET 16
How do I connect the user's choice to the group that has to make the report class?
then on header ( rep10)
Code: Select all | Expand
REPORT oReport TITLE "*** My First Report ***" ;
FONT oFont1, oFont2 ;
PREVIEW
I tried with
local nTotalpages:= oReport:oDevice:cLastPage
HEADER ' ', "Data: "+dtoc(date())+ " Pagina.: "+str(oReport:nPage,3)+"/"+nTotalpages
But not run