Bluetooth + CF

L

Larrie

Hi, i´m developing and app with CF 2.0 and WM 5. I need to send a text to a
bluetooth printer, but i couldn´t find any API to link the mobile device
with the printer...

Can anybody help me ? or pass me any link or papper ?

Thanks in advance.
 
D

Dick Grier

Hi,

The Bluetooth connection to your printer should just be SPP (Serial Port
Protocol), so you can simply open the port (after connection by the device
driver) using the serial port control (System.IO.Ports.SerialPort). Open
the port, then use the Write method to send text -- adding newline and
formfeed characters as needed.

All of this assumes that your printer does not need specially formatted
data. The programing manual from you printer manufacturer should provide
this information. Go to the printer manufacturer's web site to see if they
have any white papers specific to the printer -- Zebra has lots of
information, for example.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Bluetooth + device 1
OpennetCF 4
zebra rw420 printer 0
Symbol device 1
How to protect my app 4
App Configuration File 2
Deploy my app 2
Remove Sip Button 1

Top