EnricoMaria wrote:DevMode() function content is commented out in printdc.c.
EMG
Yes but :
1 - i am Clipper user, and i not understand all printdc.c.
Is'it necessary learn C to work with Fivewin functions ?
2 - Fivewin 2.5 help file say DevMode() return an array.
It return NIL for me, like that :
*****************
Function TestDevMod()
*****************
* To test the DevMode() function of Fivewin
#define DC_FIELDS 1
#define DC_PAPERS 2
#define DC_PAPERSIZE 3
#define DC_MINEXTENT 4
#define DC_MAXEXTENT 5
#define DC_BINS 6
#define DC_DUPLEX 7
#define DC_SIZE 8
#define DC_EXTRA 9
#define DC_VERSION 10
#define DC_DRIVER 11
#define DC_BINNAMES 12
#define DC_ENUMRESOLUTIONS 13
#define DC_FILEDEPENDENCIES 14
#define DC_TRUETYPE 15
#define DC_PAPERNAMES 16
#define DC_ORIENTATION 17
#define DC_COPIES 18
LOCAL aDevM
LOCAL nVersion
LOCAL cName := "Canon S700"
nVersion := DeviceCapabilities( cName, DC_VERSION )
IF nVersion != 0
aDevM := DevMode(cName, nVersion)
IF aDevM = NIL
MsgInfo("DevMode() return NIL !!!")
ELSE
MsgInfo("Valtype(DevMode(aDevM)) = " + VALTYPE(DevMode(aDevM)))
ENDIF
ELSE
MsgInfo("The specification version to which the printer driver conforms is " + LTRIM(STR(nVersion)) )
ENDIF
RETURN NIL
**************