Hi all,
Do you know how it is possible to do DevMode() return an array ?
Thank for your help
DevMode() failure in FW 2.5
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
DevMode() failure in FW 2.5
Badara Thiam
http://www.icim.fr
http://www.icim.fr
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: DevMode() failure in FW 2.5
DevMode() function content is commented out in printdc.c.
EMG
EMG
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Re: DevMode() failure in FW 2.5
Yes but :EnricoMaria wrote:DevMode() function content is commented out in printdc.c.
EMG
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
**************
Badara Thiam
http://www.icim.fr
http://www.icim.fr
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: DevMode() failure in FW 2.5
No, I'm only saying that DevMode() can't work as it is because it has its content commented out.Badara Thiam wrote:Is'it necessary learn C to work with Fivewin functions ?EnricoMaria wrote:DevMode() function content is commented out in printdc.c.
EMG
EMG