Static Function PriDeskjet(arcimp)
Local Oprn, cText:= MemoRead(arcimp), nlines, nRow:= 0, x, Ofont, a1
DEFINE FONT oFont NAME "ARIAL" SIZE 20,120 OF Oprn
PRINT Oprn NAME "EGRESOS" Preview
Oprn:SetPortrait()
nLines:= MLCOUNT(cText,110)
PAGE
If !Empty(cText)
FOR x:= 1 TO nLines
nRow += 0.68
a1 = MEMOLINE(cText,110,x)
Oprn:cmSAY(nrow,0,a1,ofont)
NEXT
Endif
ENDPAGE
ENDPRINT
Oprn:End()
oFont:End()
Return (nil)CUANDO SALE EL PREVIEW, EL BOTON DEL PDF no genera el archivo, dice que lo va a grabar y no lo hace,
agradeciendo sus comentarios.