The .NET Compact Framework Generator allows you to send reports to Printer or File.
This feature should be used to make a printer API.
Graphics Reports use single functions that depend on the printing tools (printer driver) of the device. For this reason, those functions should be specified in each particular case. GeneXus
Text Reports can be printed to IR
printers. For IR
printing Pocket pc operative system configuration has to include the Printer Port Driver
The "Example for Printing Graphic Report with PrinterCE driver on PPC 2003" section provides instructions to use PrinterCE driver on a Device (Pocket PC 2003). To use a driver other than PrinterCE, see "Steps for Printing Graphic Report with Another Printer Driver".
Download PrinterCE driver for Pocket PC 2003 from Fieldsoftware
. Install it in your pocket pc and copy the two libraries (PrCE_NetCF.dll and PrinterCE.NetCF.dll) to the application installation directory on the device (the same directory where the .exe is deployed).
Generate, compile, deploy and execute the report. Note:
.Net Mobile's Build 97 has a new library in the bin directory of the .Net Mobile model called PrinterAPI.dll to implement the interfaces between GeneXus
and Printer Drivers. To view the source code, open the Printer.cs file in the PrinterAPIsource.zip file.
After choosing a printer driver, follow these steps:
Extract the Printer.cs file from PrinterAPIsource.zip (You can get it from the above attachment link or from the bin directory of a .Net Mobile model).
Open the Printer.cs file and override the following methods of the GraphicPrinter class using your driver's native functions.
Compile it with references to GxClasses.dll (it is in the bin directory of the .net mobile model). Copy it to the bin directory of the .net mobile model and the driver libraries to the application installation directory on the device (the same directory where the .exe is deployed).
Generate, compile, deploy, and execute the report.
PrintCE from Fieldsoftware
HP Mobile printing SDK for .NET (*)
(*) HP will discontinue HP Mobile Printing for Pocket PC and HP Mobile Printing SDK for Pocket PC, effective October 1, 2005. Any current customers / developers may receive basic phone support for six months thereafter, with all support for these products ending on April 1, 2006.