Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OPOS EnabledDevice problem
Message
 
À
06/01/2003 22:28:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00737166
Message ID:
00738904
Vues:
15
I've had problems with OPOS (EPSON version) working on some of my W2K machines. I had an older machine running W2K that wouldn't run a specific version of OPOS (don't remember why anymore). But I remember that it did work once I changed machines. Try another W2K computer and see if that helps or better yet, try to get another OPOS version. Maybe the older OPOS version will work, whereas the newer one won't. You'll have to experiment.
Allen


>Hi Mark,
>
>I tried your method but still having the same problem, see the hour glass and program not responsing when you tell task manager in Win2k.
>
>Below is part of my testing code, hope u can see my mistake, thank
>
> #DEFINE PRTNAME [TSP442D]
>
> IF THISFORM.olestar.Open(PRTNAME) = 0
>
> IF THISFORM.olestar.ClaimDevice(0) = 0
>
> THISFORM.olestar.DeviceEnabled = .T.
>
> THISFORM.olestar.AsyncMode = .F.
>
> Messagebox("Printer enabled")
>
> IF THISFORM.oleStar.CapRecNearEndSensor = .F.
> Messagebox("Printer don't have near end sensor")
> ELSE
> Messagebox("Printer have near end sensor")
> IF THISFORM.oleStar.RecNearEnd
> Messagebox("Printer receipt paper is low")
> ENDIF
> ENDIF
>
> IF THISFORM.olestar.CapRecEmptySensor
> IF THISFORM.olestar.RecEmpty
> Messagebox("Paper is empty")
> ELSE
> Messagebox("Paper is okay")
> ENDIF
> ELSE
> Messagebox("Printer don't have empty sensor")
> ENDIF
>
> ENDIF
>
>
> IF THISFORM.oleStar.Claimed
>
> THISFORM.oleStar.ReleaseDevice()
>
> Messagebox("going to close the device")
>
> THISFORM.olestar.Close()
>
> Messagebox("All done")
>
> ENDIF
>
> ENDIF
>
>
>
>
>
>>After I Open and Claim the printer, I set the DeviceEnabled property to TRUE and AsyncMode to FALSE. In the Destroy method of my form, all I do is:
>>IF THIS.oleOpos.Claimed  && THIS == THISFORM
>>   THIS.oleOpos.Close()
>>ENDIF
>>I do not set the DeviceEnabled property to false. That is all I do.
>>
>>>Hi,
>>>
>>>I had tried your method, but it still give me problem like showing hour glass and halt my system. I am using the OPOS printer driver. Do your know what is wrong ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform