Log in

View Full Version : HP Mobile Printing SDK for PocketPC


verus2004
08-20-2003, 06:29 PM
Hello,

I am using the HP Mobile Printing SDK for PocketPC to print from an application that I am developing. The PrintJob function works perfect, but I need to do my owe rendering and I am trying to use the function CreatePrinterContext () . That function return a Window HDC that I was trying to use like in a regular MFC App attaching it to a CDC where I can call the functions StartDoc, StartPage and so on, but those function are not available on the CE version of MFC since all the printing support was remove from it. Now I have no idea of how to use the Window HDC to print and I can not find any example on the web and HP will charge me $125 for support.

This is a quote from their help file:

CreatePrinterContext creates a device (printer) context describing the target properties so that an application can render into it. Currently, only direct-based printers are supported. Service-based printers will not be available to the user when the application uses this method of printing.
On PocketPC, MPRINT_DC is a Windows HDC and can be used as one.


If you have any idea of how to do it please let me know.