Code: Select all
oPrn:SetPortrait()
oPrn:SetPage(1)
REPORT oReport ;
TITLE "REGISTRO DE TIPOS DE CONTROL",;
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 );// CENTERED;
PREVIEW //TO DEVICE oPrn PREVIEW // TO FILE "d:\test.txt" TO
COLUMN TITLE "Codigo" DATA oDatos:Fields("catval"):Value;
FONT 1 //SHADOW GRID 1 hace la raya vertical
COLUMN TITLE "Descripcion" DATA oDatos:Fields("nomb_val"):Value ;
FONT 1 SIZE 30 //SHADOW grid //coloca sombreado
GROUP ON oDatos:Fields("refcat"):Value HEADER "Referencia "+oDatos:Fields("refcat"):Value
END REPORT
ACTIVATE REPORT oReport ON STARTPAGE StartPage(1,oReport) ON STARTLINE versombra(oReport);
ON STARTGROUP oReport:NewLine() WHILE nLinea <= nHasta