FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour por q no funciona harcopy
Posts: 225
Joined: Tue Feb 28, 2006 04:25 PM
por q no funciona harcopy
Posted: Wed Jan 28, 2009 01:18 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: por q no funciona harcopy
Posted: Fri Jan 30, 2009 09:29 PM

Vladimir,

Prueba a comentar estas dos lineas:

::Refresh()
SysRefresh() // Let Windows process

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion