REPORT oReport ;
TITLE "REGISTRO REFERENCIAS ",;
OemtoAnsi("");
FONT oFon1,;
oFon2,;
oFon3 ;
PEN oPen1,;
oPen2 ;
HEADER " Fecha : "+dtoc(date()),;
"Hora : "+time(),;
"Pagina: "+strzero(oReport:nPage,3),;
memvar->X_TPAQU;
RIGHT ;
FOOTER OemtoAnsi(memvar->X_SIGLA );
PREVIEW //TO DEVICE oPrn PREVIEW
COLUMN TITLE "Sta","Item" DATA {||iif(oDatos:Fields("status"):Value=1,"Si","No")}, oDatos:Fields("consec"):Value ;
FONT 1 SIZE 6 //SHADOW GRID 1 hace la raya vertical
COLUMN TITLE "Item","Codprod" DATA oDatos:Fields("consec"):Value,oDatos:Fields("codprod"):Value;
FONT 1 SIZE 12 //SHADOW GRID 1 hace la raya vertical
COLUMN TITLE "Referencia","Simbolo" DATA oDatos:Fields("simbolo"):Value,oDatos:Fields("referencia"):Value;
FONT 1 SIZE 20 //SHADOW GRID 1 hace la raya vertical
COLUMN TITLE "Largo/Alt","Ancho.B.Menor" DATA oDatos:Fields("largo"):Value, ;
oDatos:Fields("ancho"):Value FONT 1 SIZE 8
COLUMN TITLE "Ancho/B.Menor","Solapa" DATA TRANSFORM(oDatos:Fields("ancho_m"):Value,"999.99") ,;
TRANSFORM(oDatos:Fields("solapa"):Value,"999.99") FONT 1 SIZE 10
COLUMN TITLE "Fuelle.F","Fuelle.L" DATA TRANSFORM(oDatos:Fields("fuel_f"):Value,"999.99"), ;
TRANSFORM(oDatos:Fields("fuel_l"):Value,"999.99") FONT 1 SIZE 6
COLUMN TITLE "Metros","Peso/Mil" DATA TRANSFORM(oDatos:Fields("metros"):Value,"999.99"), ;
TRANSFORM(oDatos:Fields("kilmil"):Value,"99.9999") FONT 1 SIZE 6
GROUP ON oDatos:Fields("codprov"):Value
END REPORT
oReport:bSkip := { || (nLinea++, oDatos:MoveNext())}
endif
ACTIVATE REPORT oReport ON ENDPAGE oReport:lPageTotal:= .f. ;
ON STARTGROUP( oReport:NewLine(),;
oReport:EndLine(),;
oReport:Say(0,"CLIENTE : " +codprov+"-"+ALLTRIM(codprov),4,,oReport:nRow),;
oReport:NewLine(),;
oReport:EndLine() )
ntotal:=0
aoControl[1] := TXBrowse():New( oWdestino )
aoControl[1]:nleft:=columna
aoControl[1]:ntop:=fila
aoControl[1]:nright:=300
aoControl[1]:lFooter := .t.
aoControl[1]:SetAdo(oRs,,.t.) //activa la autoordenacion
aoControl[1]:CreateFromCode()
aoControl[1]:acols[7]:lTotal := .t. //para totalizar cols a report y/o excel
aoControl[1]:acols[7]:bFooter = {|| TRANSFORM(nTotal,"9,999,999,999.99") }
aoControl[1]:acols[7]:nFootStrAlign := 1
aoControl[1]:Report("Consumo por Tipo de Combustible ",,,,{7})
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot], wmormar and 69 guests