add text to REPORT

add text to REPORT

Postby MOISES » Mon Jun 02, 2008 3:08 pm

Hi,

I have a REPORT such as:

REPORT oReport TITLE OemToAnsi("*** Listado de AGENTES ***") ;
PREVIEW CAPTION OemToAnsi("Listado de AGENTES")


COLUMN TITLE OemToAnsi("C¢digo") DATA AGENTES->CODIGO

COLUMN TITLE "Nombre del Agente" DATA LEFT( AGENTES->NOMBRE, 30 )

END REPORT

ACTIVATE REPORT oReport


At the end of it (not as PAGE FOOTERS), I would like to add a table like this:


=====================
Resumen anual
====================
Total primer trimestre 100
====================
Total segundo trimestre 200
====================

¿How can be done?. Thank you!!!.

Best regards,
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: add text to REPORT

Postby Enrico Maria Giordano » Mon Jun 02, 2008 4:32 pm

Code: Select all  Expand view  RUN
#include "Fivewin.ch"
#include "Report.ch"


FUNCTION MAIN()

    LOCAL oRpt

    USE TEST

    REPORT oRpt PREVIEW

    COLUMN TITLE "LAST";
           DATA FIELD -> last

    COLUMN TITLE "FIRST";
           DATA FIELD -> first

    ENDREPORT

    ACTIVATE REPORT oRpt;
             ON END ( oRpt:TotalLine( RPT_DOUBLELINE ),;
                      oRpt:Say( 1, "This is the first line" ),;
                      oRpt:StartLine(),;
                      oRpt:EndLine(),;
                      oRpt:Say( 1, "This is the second line" ) )

    CLOSE

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby MOISES » Mon Jun 02, 2008 8:01 pm

Thank you!!!
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 74 guests