SerialPort cannot open BlueTooth serial

P

Peter Morris

Hi all

I have configured attached a BlueTooth printer to my PPC and enabled
wireless printing on COM6.

However, the following code throws an exception saying that COM6 does not
exist.
SerialPort sp = new SerialPort("COM6", 9600, Parity.None, 8, StopBits.One);

sp.Open();



Can anyone tell me how to send data directly to the printer over this port?
I am trying to avoid using the COM object that ships with the device because
it seems to be leaking memory.





Thanks



Pete
 
G

Ginny Caughey [MVP]

Pete,

Are you sure that COM6 is the right port? I am able to print to bluetooth
printers using the SerialPort class without problems, so I think there must
be something with the configuration or perhaps the device.
 
P

Peter Morris

Hi

100%, Using the ActiveX I specify COM6 as the connection point, and that is
how I have it configure in the OS settings too.

It doesn't matter now anyway, I have worked around my "Out of memory"
problem when trying to create an instance of the COM object :)


Pete
 

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

Top