Printing in the Compact Framework

S

Samuel Shulman

Hi all

I have the following basic questions:

1. Can I print using the PrintDocument or any thing similar

2. How can a typical device (Pocket PC) be connected to a printer, it is
required to be connected to a PC?

Thank you,
Samuel
 
G

Guest

1. Can I print using the PrintDocument or any thing similar

No, the PrintDocument doesn't exist
2. How can a typical device (Pocket PC) be connected to a printer, it is
required to be connected to a PC?

Typically they are bluetooth or serial, so you'd use the SerialPort stuff
fot communication. Look at PrinterCE or PrintBoy.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
 
S

Samuel Shulman

Is coding for printing directly from the device more diffcult thhan .NET
printing?
 
G

Guest

Yes, because the printing classes just dont exist. That's because most
devices have no way to connect to a printer other than serial or bluetooth.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


Samuel Shulman said:
Is coding for printing directly from the device more diffcult thhan .NET
printing?
 
B

Buthrakaur

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:
 

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