report writer

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

report writer

Post by t57042 »

Is it possible to define and print subtotals in a group and at the end of a report?
Any exampes?

Thanks
Richard
JALMAG
Posts: 265
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: report writer

Post by JALMAG »

t57042 wrote:Is it possible to define and print subtotals in a group and at the end of a report?
Any exampes?

Thanks
Richard
Hola Richard, no se si estaré diciendo una tonteria pero mira esta parte de código, si te das cuenta aexiste una etiqueta llamada TOTALS....

DO REPORT ;
TITLE 'Contactos' ;
HEADERS {'','','','',''} , {'Apellido','Nombres','Calle','Numero','Tipo'};
FIELDS {'Contactos->Apellido','Contactos->Nombres','Contactos->Calle','Contactos->Numero','Tipos->Desc'};
WIDTHS {10,15,20,7,15} ;
TOTALS {.F.,.F.,.F.,.F.,.F.} ;
WORKAREA Contactos ;
LPP 50 ;
CPL 80 ;
LMARGIN 5 ;
PREVIEW


En Minigui->Samples->Basic->Contactos tienes el ejemplo completo, realizado por Roberto López.
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: report writer

Post by t57042 »

Muchas gracias,

But what I need is a solution for the REPORTS ADVANCED

Richard
JALMAG
Posts: 265
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: report writer

Post by JALMAG »

t57042 wrote:Muchas gracias,

But what I need is a solution for the REPORTS ADVANCED

Richard

En este topic viewtopic.php?f=5&t=1219&hilit=report+wizard Fernando creó un wizard de impresión donde se le puede especificar si totalizas, puedes mirar en el codigo fuente.

Un saludo cordial
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: report writer

Post by t57042 »

Thanks.

Other question - is it possible and how to force a page break (start a new page) after a
groupfooter is printed to have every group on another page?

Richard
Post Reply