Bluetooth Printing - Nobody knows about it ?

  • Thread starter Thread starter Ali Mertoglu
  • Start date Start date
A

Ali Mertoglu

Hi,
I am trying to print invoice from CASIO CE.NET 4.1 device to serial printer
which has bluetooth. I am working on Franson Bluetools component, but I
couldn't success to send data from CE.NET 4.1 device. It works on POCKET PC
2003 Mobile device but not CE.NET 4.1.

Is there any other component or source code for discover, connect and send
data via bluetooth ? I really need this type of connection and I couldn't
understand that, CF has no capability for spesific functionality .

Thanks in advance !

Ali.

Vizyon Bilgi Islem Ltd.
Istanbul/Turkiye
 
Hi,

You want to say that you had set up Bluetooth connectioin from your
code for Pocket PC device?
Please tell me how you did it via coding @ Compact Framework.
and can you tell me which Bluetooh Media you are using for WinCE.

We are doing Printing for PPC and WinCE both device.

Bhavesh Rana.
"A man is great by deeds, not by birth."
 
Hi,
connecting to bth serial port is quite easy:

First you need to import some native api funtions like RegisterDevice,
DeregisterDevice, CreateFile and so on. And declare PORTEMUPortParams struct
use by native functions...

Then you register new device to port u wish to use:
PORTEMUPortParams pp = new PORTEMUPortParams();
pp.channel = myChannel;
pp.flocal = 0;
pp.device.SetInt64(myBthAdress);
pp.uiportflags = 0x00000002;

PORTEMUPortParams *p = &pp;
RegisterDevice( "COM", (uint)portNumber, "btd.dll", (uint)p);

Then you can work with registered device like with any other com port:

int hFile = CreateFile( string.Format("COM{0}:", portNumber), GENERIC_READ |
GENERIC_WRITE, 0,0, OPEN_EXISTING,0,0)

Michal Rizek
 
hi Michal Rizek, could you send me an example code more detailed about printing to a bluetooth printer please?

madval -> gmail
 
hi
i am trying to communicate with bluetooth gps with my windows ce.net 4.2 device..but i am unable to find coredll..do you have sample code for bluetooth communication..please send it to sidhu.aman{at}gmail
 
Why are you hijacking this thread? Start a new thread for a new topic.

GPS always uses serial port profile, doesn't it? If so, you don't have to
do anything Bluetooth to talk to the GPS. Have the user set up a serial
port to communicate with the GPS and use the serial classes in .NET CF 2.0
to talk to that port.

Paul T.
 
Bluetooth printing...!

Hi All,


I am developing an application through windows Mobile 5.0. In that application Contains
Invoice details. While I click the Print Button the invoice should be printed via bluetooth.
I am having bluetooth printer also. But I dont know how to invoke the bluetooth printer..
If any of you Know please help me. if u have sample code please send ([email protected]).

Eagerly waiting for that..!



Thanks in Advance,
Jack
 
Back
Top