Adjunto ejemplo
Code: Select all | Expand
#include 'fivewin.ch'
STATIC oWnd
*--------------
FUNCTION Main()
*--------------
LOCAL oBar, oBtn, oBtnRpt, oMenu, oRptDsg
DEFINE WINDOW oWnd TITLE 'Version: ' + FWVERSION
DEFINE BUTTONBAR oBar SIZE 30, 30 _3D OF oWnd
DEFINE BUTTON oBtn OF oBar NAME '' ACTION Test_Prn()
ACTIVATE WINDOW oWnd
RETU NIL
*-------------------------
STATIC FUNCTION Test_Prn()
*-------------------------
LOCAL oPrn := PrintBegin( 'test' , .F., .T.,, .f., .f. )
PAGE
oPrn:Say( 20, 20, "This 1 is a test in Landscape" )
ENDPAGE
PAGE
oPrn:Say( 20, 20, "This 2 is a test in Landscape" )
ENDPAGE
PAGE
oPrn:Say( 20, 20, "This 3 is a test in Landscape" )
ENDPAGE
ENDPRINT
RETU NIL
Cuando ejecuto el preview y lo cierro (quizas lo deba hacer mas de una vez ...) la barra de botones aparece negra, como si perdiera algun brush, recurso... Alguien le ha pasado y ha encontrado una solución ?
Antes de ejecutar preview ...
![Image](http://imagizer.imageshack.us/v2/xq90/674/KQ0LYY.png)
Despues de cerrar el preview...
![Image](http://imagizer.imageshack.us/v2/xq90/538/R5eZtt.png)