Printing

  • Thread starter Thread starter chak
  • Start date Start date
C

chak

How does one print a document from a CF application ? Presuming that there
are printers which can be attached to a device , just like a scanner can be.

Thanks.
 
Hi Chak,

.NET CF does not provide any printing functionality.

Windows CE printing functionality is provided by the OEM of the device. If
you are using HP IPAQ Pocket PCs, you can get the "HP Mobile Printing SDK
for Pocket PC" from HP.

However if we assume that the OEM developed the necessary drivers and
device for printing, it should be as simple as opening a file with the port
name (i.e. "LPT1:") and writing to that file.

If available with your device, you can also p/invoke to API functions such
as StartDoc, StartPage etc.

Thanks

Ercan Turkarslan
Microsoft Mobile Devices Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top