por q no funciona harcopy

Post Reply
Vladimir Zorrilla
Posts: 225
Joined: Tue Feb 28, 2006 4:25 pm
Location: PERU

por q no funciona harcopy

Post by Vladimir Zorrilla »

Amigos modifique el metodo hardcopy para sacar vista previa sale pagina en blanco saben por que sucede esto

METHOD HardCopy( nScale, lUser , cOrientation , cMode ) CLASS TWindow

local oPrn

DEFAULT lUser := .t.

// if lUser
// PRINT oPrn NAME ::cTitle FROM USER
// else
// PRINT oPrn NAME ::cTitle
// endif

IF cMODE="DIRECTO"
PRINT oPrn NAME ::cTitle
ELSE
PRINT oPrn NAME ::cTitle PREVIEW
ENDIF

IF cOrientation="VERTICAL"
oPrn:SetPortrait() //Vertical
ELSE
oPrn:SetLandScape() //Horizontal
ENDIF

PAGE
::Refresh()
SysRefresh() // Let Windows process
::Print( oPrn, 0, 0, nScale )
ENDPAGE
ENDPRINT

return nil

Mil gracias
ME INTERESA FW Y XHB POR SER OPEN SOURCE
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: por q no funciona harcopy

Post by Antonio Linares »

Vladimir,

Prueba a comentar estas dos lineas:

::Refresh()
SysRefresh() // Let Windows process
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply