Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OPOS EnabledDevice problem
Message
From
08/01/2003 04:07:09
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00737166
Message ID:
00739207
Views:
20
Hi,

Thank for your advise. I having the same problem on three different system,
hence, if according to your comment, it could be the OPOS driver.

BTW, do your know where to get the OPOS driver as I don't remember where
to get the OPOS driver and printer name as the Star website don't offer any of their window driver.


>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 ?
Best Regards
Virusim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform