Printing from an H/PC

Because Windows CE includes printing support, H/PC applications may enable printing. Use the PrintDlg function to provide printing capability in your applications. PrintDlg in Windows CE 2.0 is the same as it is on Windows-based desktop platforms, with one exception. Because Windows CE 2.0 does not support the Print Setup dialog box, the members associated with it do not exist in the Windows CE PRINTDLG structure.

Because the Print Setup dialog box is not supported in Windows CE 2.0, you cannot set page ranges or specify the number of copies to print. You must print the entire document or the currently selected portion of the document, and you can print only one copy at a time. However, Windows CE 2.0 does support some page setup functionality. In Windows CE 2.0, two members have been added to the PRINTDLG structure: rcMargin and rcMinMargin. The rcMargin member specifies the widths of the left, top, right, and bottom margins; the rcMinMargin member specifies the minimum allowable widths for those margins.

In contrast, Windows CE 2.10 does not support PrintDlg. However, it does support the PageSetupDlg function. The Page Setup dialog box lets a user set the attributes of a printed page. Create your own print dialog box using the dialog box template.