Microsoft Stack with PrinterCE

Topics: Bluetooth - Microsoft
Feb 13, 2012 at 7:40 AM

Good Day

Im trying to implement the PrinterCE using the Microsoft Stack but the problem is i cannot connect with the printer because of the passcode.

Can anyone help me out on this.

Thanks

Developer
Feb 13, 2012 at 6:40 PM

Don't know much about PrinterCE but you could use BluetoothSecurity.PairRequest to pair the PDA and printer.  See e.g. http://32feet.codeplex.com/wikipage?title=Bluetooth%20Security&referringTitle=Documentation 

You could even use BluetoothClient to connect to the SerialPort service directly and then send the bytes of the page to be over the connection stream -- if you know what format to send etc.  But PrinterCe probably handles that bit for you...