PRINT oPrn NAME "Adelanto" PREVIEW MODAL
oPrn:SetPortrait() // Horizontal
oPrn:SetPage(9) // A4
PAGE
@ .8, 01.15 PRINT TO oPrn TEXT IF(x=1,"ORIGINAL","DUPLICADO") SIZE 18,.9 CM FONT oFont1 ALIGN "C"
@ 2, 01 PRINT TO oPrn TEXT cNom_emp SIZE 9,1 CM FONT oFont1 ALIGN "C" LASTROW nRow
@ nRow, 01 PRINT TO oPrn TEXT cDire_emp SIZE 9,1 CM FONT oFont LASTROW nRow ALIGN "C"
@ 5.5, 1 PRINT TO oPrn TEXT "Legajo Nro:" SIZE 3,.5 CM FONT oFont3 ALIGN "L"
@ 5.5, 4.1 PRINT TO oPrn TEXT STR(oRs:Fields("legajo"):value,8) + " D.N.I.:" + STR(oQry:dni,8) + " C.B.U.:"+oQry:cbu SIZE 14,.5 CM FONT oFont ALIGN "L"
@ 6, 1 PRINT TO oPrn TEXT "Apellido y Nombres:" SIZE 3,.5 CM FONT oFont3 ALIGN "L"
@ 6, 4.1 PRINT TO oPrn TEXT ALLTRIM(oRs:Fields("apellido"):value) + " " + ALLTRIM(oRs:Fields("nombres"):value) SIZE 6,.5 CM FONT oFont ALIGN "L"
@ 6.5, 1 PRINT TO oPrn TEXT "Jurisdiccion:" SIZE 3,.5 CM FONT oFont3 ALIGN "L"
@ 6.5, 4.1 PRINT TO oPrn TEXT cJurisdiccion SIZE 6,.5 CM FONT oFont ALIGN "L"
@ 8.2, 01 PRINT TO oPrn TEXT "Concepto" SIZE 5,.5 CM FONT oFont3 ALIGN "L"
@ 8.2, 11 PRINT TO oPrn TEXT "Importe $" SIZE 2,.5 CM FONT oFont3 ALIGN "R"
y := 9.2
mtotal := 0
FOR i := 1 TO LEN(aConceptos)
@ y, 01 PRINT TO oPrn TEXT PADR(ALLTRIM(aConceptos[i,1]),200,".") SIZE 9,.5 CM FONT oFont ALIGN "L"
@ y, 11 PRINT TO oPrn TEXT STR(aConceptos[i,2],12,2) SIZE 2,.5 CM FONT oFont ALIGN "R"
y := y + .5
mTotal := mTotal + aConceptos[i,2]
NEXT i
@ y, 01 PRINT TO oPrn TEXT "Total:" SIZE 9,.5 CM FONT oFont3 ALIGN "L"
@ y, 11 PRINT TO oPrn TEXT STR(mTotal,12,2) SIZE 2,.5 CM FONT oFont3 ALIGN "R"
@ 22.5, 12 PRINT TO oPrn TEXT REPLICATE("_",45) SIZE 9,.5 CM FONT oFont3 ALIGN "L"
@ 23, 12 PRINT TO oPrn TEXT "Firma Responsable" SIZE 9,.5 CM FONT oFont3 ALIGN "L"
y := y + 1
@ 21, 01 PRINT TO oPrn TEXT "Son pesos " + Letra(mtotal) + " ($"+STR(mTotal)+")" SIZE 10.8,3 CM FONT oFont
ENDPAGE
ENDPRINT