General information
Category:
Coding, syntax & commands
Hi Ken.
I was also trying to use this control..it worked on my PC but
could not get it to work on clients..I had to resort to COPY CON: COM1:
which seems to give intermiitent problems.
I'd appreciate details of how to sort the problem.
Thanks
Gerard
>>Hi all
>>
>>I can use this code on my own computer to open a cashdraw but does not work on client's computer.
>>The code is : (nComport is 1)
>>if cCashdraw="Y"
>> with thisform.MSCOMM1
>> .CommPort=nComport
>> .Settings="9600,n,8,1" && Set the baud rate
>> .PortOpen=.t. && Open the port
>> .output="A" && send A Character
>> .output="A"
>> .output="A"
>> .output="A"
>> .PortOpen=.F.
>> endwith
>>endif
>>
>>On client's computer, I get "OLE error code 0x80040154. Class not registered. OLE object is being ignored"
>>
>>Any ideas ??? Your help will be appreciated. Thanks.
>>Shafid
>
>I suspect the problem is that the mscomm32.ocx is not registered for interactive use on the client computer. In addition to installing the mscomm32.ocx, you have to run a file called mscomm32.reg.
>
>I sent you an E-Mail with that file attached.
>
>Hope this helps,
>
>Ken
>
>P.S. Why are you not opening the cash drawer via a connection thru the receipt printer?
>
>Ken
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only