Hi,
yes, printing from CF is much more difficult, because there's no
printing support on PPC/WM at all. The connection between printer and
your device is quite simple - you can handle just SerialPort and
infrared connection.
There are few issues in IrDA communication with printer from CF
application. I had to build a eVC++ dll to be able to communicate with
the printer using proper protocol (IRLPT). Some printers accept the
default protocol (don't remember now how is it exactly called) which
can be used from CF directly, but others support just the IRLPT which
is not possible to use directly from CF.
The other problem is that you have to implement the printer language
logic (this means some special control character sequences which
control the font and other printer settings) if you don't want to print
just using the default font and settings. The language depends on the
printer type you wish to support - nearly each printer producer (hp,
canon, zebra, seiko) uses it's own print language...
I have developed a simple printing library for our application which
supports hp, zebra and seiko printers and BT/serial and IR connections.
It's quite simple to implement it, but it takes a lot of time to test
it
Samuel Shulman napsal: