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???