DevMode() failure in FW 2.5

DevMode() failure in FW 2.5

Postby Badara Thiam » Thu Mar 16, 2006 8:37 am

Hi all,

Do you know how it is possible to do DevMode() return an array ?

Thank for your help
Badara Thiam
http://www.icim.fr
User avatar
Badara Thiam
 
Posts: 160
Joined: Tue Oct 18, 2005 10:21 am
Location: France

Re: DevMode() failure in FW 2.5

Postby Enrico Maria Giordano » Thu Mar 16, 2006 8:49 am

DevMode() function content is commented out in printdc.c.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: DevMode() failure in FW 2.5

Postby Badara Thiam » Thu Mar 16, 2006 11:06 am

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
**************
Badara Thiam
http://www.icim.fr
User avatar
Badara Thiam
 
Posts: 160
Joined: Tue Oct 18, 2005 10:21 am
Location: France

Re: DevMode() failure in FW 2.5

Postby Enrico Maria Giordano » Thu Mar 16, 2006 11:37 am

Badara Thiam wrote:
EnricoMaria wrote:DevMode() function content is commented out in printdc.c.

EMG
Is'it necessary learn C to work with Fivewin functions ?


No, I'm only saying that DevMode() can't work as it is because it has its content commented out.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 4 guests