Landscape print is not correct
Posted: Thu Dec 29, 2005 1:29 pm
Hi fw's
with the fwh 2.7 version I have a problem in landscape print.
This problem is not present in previous version FWH2.5
Test this sample:
with the fwh 2.7 version I have a problem in landscape print.
This problem is not present in previous version FWH2.5
Test this sample:
Code: Select all
#include "Fivewin.ch"
FUNCTION Main()
Stampa( 0, "Prova Verticale" )
Stampa( 1, "Prova Orizzontale" )
RETURN Nil
FUNCTION Stampa( nOriente, cTitolo )
LOCAL oFont
LOCAL oPrinter
DEFAULT cTitolo := "Prova Orizzontale", nOriente := 1
// Qui imposto la stampa da fivewin
PRINT oPrinter PREVIEW // NAME cTxt MODAL // TO cPrinter
IF oPrinter:hDC != 0
DEFINE Font oFont NAME "Arial" SIZE 0, - 20 BOLD OF oPrinter
PAGE
IF nOriente > 0
oPrinter:SetLandscape()
ELSE
oPrinter:SetPortrait()
ENDIF
oPrinter:CmSay( 1, 1, cTitolo, oFont )
ENDPAGE
ENDPRINT
oFont:END()
ENDIF
RETURN .t.