Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting baud rate
Message
From
25/05/2007 09:38:54
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
25/05/2007 09:35:08
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01228433
Message ID:
01228482
Views:
18
that's what I want... :)

>You can do that using the MS Comm activex control and putting the activex control on a form invisible.
>
>Something like:
>
>thisform.olecontrol1.CommPort = 1
>thisform.olecontrol1.PortOpen = .T.
>thisform.olecontrol1.Settings = '9600,N,8,1'
>thisform.olecontrol1.PortOpen = .F.
>
>
>>Thanks but, I should set com port's baud rate...
>>
>>>On most Epson receipt printers, serial communications settings are controlled by memory switches. You set them via ESC commands (a simple thing to do). Find the model of the printer and look in the technical manual or find it online. Here is one example:
>>>
>>>http://www.amlabels.co.uk/FAQ/Mobile%20printers/EpsonTM-P60Tech.pdf
>>>
>>>Look at page 33
>>>
>>>Most Epson receipt printers work the same way.
>>>
>>>
>>>>Hi All,
>>>>
>>>>I have a EPSON receipt printer. I'm sending receipts with this command to printer:
>>>>
>>>> DECLARE INTEGER CopyFile IN kernel32;
>>>> STRING lpSrcFile, STRING lpDstFile, INTEGER bFail
>>>> CopyFile(m.xfile,m.xport, 0)
>>>>
>>>>Printer's baud rate is 19.200 . I tried adjust it from control panel, but it's useless. I tried with dos mode command. It succeeded.. I want to do it from without use MODE command. How can I do it???
Previous
Reply
Map
View

Click here to load this message in the networking platform