Hi Timothy, Thank you for your post. But I've not been able to test your code because of a problem on my printer. I shall post the result when I shall test it.
Best regards, Marc --- In [email protected], "Timothy" <gilh...@...> wrote: > > I am calling my Serial Port CMP10 > > The licence key to get the serial control working is in your NSBASIC > documentation > > You will have to pair up the printer with your device > > In my example I am using COM6 > > On your PDA you will need to create an outgoing COM Port and do not check the > box to make it a secure connection > > You have to send all control codes to the printer as this is a raw connection > > Here is the code that works for me:- > > ' > AddObject "serialce.port.1","cmp10" > AddObject "serialce.license","objlicense" > > objLicense.LicenseKey = "????????in your documentation??????" > > cmp10.noevents=True > cmp10.comport=6 > cmp10.baudrate=115200 > cmp10.bytesize=8 > cmp10.parity=0 > cmp10.stopbits=0 > cmp10.handshake=0 > > > Sub pPrint(xData) > On Error resume next > If cmp10.enabled=False Then cmp10.enabled=True > cmp10.write xData > Sleep 20 > On Error Goto 0 > End Sub > > > > > > --- In [email protected], "mlagardette" <mml@> wrote: > > > > Thanks a lot for your post. > > > > Would it be excessive to ask you some lines of code for samples ? > > > > Best regards. > > > > --- In [email protected], Timothy Williams <gilhyde@> wrote: > > > > > > To print from NSBasic I connect the print via Bluetooth as a COM Port. > > > Â Then use the serial control to send data directly to the printer. Â As > > > you will not be using a printer driver you must manually send all the > > > control codes > > > > > > --- On Thu, 8/19/10, mlagardette <mml@> wrote: > > > > > > From: mlagardette <mml@> > > > Subject: [nsbasic-ce] Printing reports > > > To: [email protected] > > > Date: Thursday, August 19, 2010, 10:49 PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Â > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > Has anybody built a printing program using NSBasic ? > > > > > > Could you help me, because I don't see how to start...and complete... > > > > > > > > > > > > I have a SQLite database and should want to print a report with the data > > > I insert in a record, maybe via bluetooth. > > > > > > > > > > > > With which tool(s) could I build and print such reports, please ? > > > > > > -- You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en.
