Files
harbour-core/harbour/contrib/hbwin/tests/testprn3.prg
Viktor Szakats 1b4008723b 2012-01-06 16:13 UTC+0100 Viktor Szakats (harbour syenar.net)
* ChangeLog
  * (whole tree)
    * changed e-mail address
2012-01-06 15:28:23 +00:00

48 lines
973 B
Plaintext

/*
* $Id$
*/
/*
* Harbour Project source code:
*
* Copyright 2009 Viktor Szakats (harbour syenar.net)
* www - http://harbour-project.org
*
*/
#include "simpleio.ch"
PROCEDURE Main()
Dump( WIN_PRINTERLIST( .F., .F. ) )
Dump( WIN_PRINTERLIST( .F., .T. ) )
Dump( WIN_PRINTERLIST( .T., .F. ) )
Dump( WIN_PRINTERLIST( .T., .T. ) )
? "WIN_PRINTERGETDEFAULT:", ">" + WIN_PRINTERGETDEFAULT() + "<"
? "WIN_PRINTERSTATUS:", WIN_PRINTERSTATUS()
RETURN
STATIC PROCEDURE Dump( a )
LOCAL b, c
? "=================="
FOR EACH b IN a
?
IF ValType( b ) == "A"
FOR EACH c IN b
?? c:__enumIndex(), c
IF c:__enumIndex() == 2
?? ">>" + WIN_PRINTERPORTTONAME( c ) + "<<", "|>>" + WIN_PRINTERPORTTONAME( c, .T. ) + "<<|"
ENDIF
?
NEXT
? "-----"
ELSE
? b, WIN_PRINTEREXISTS( b ), WIN_PRINTERSTATUS( b )
ENDIF
NEXT
RETURN