Share via


StartDoc (Windows Embedded CE 6.0)

1/6/2010

This function starts a print job.

Syntax

int StartDoc( 
  HDC hdc, 
  CONST DOCINFO* lpdi
);

Parameters

  • hdc
    [in] Handle to the device context (DC) for the print job.
  • lpdi
    [in] Long pointer to a DOCINFO structure that contains the name of the document file and the name of the output file.

Return Value

A value greater than zero indicates success. This value is the print job identifier for the document. A value less than or equal to zero indicates failure. To get extended error information, call GetLastError.

Remarks

Applications should call this function immediately before beginning a print job. Using this function ensures that multipage documents are not interspersed with other print jobs.

Windows Embedded CE does not support printing to files. It ignores the lpszOutputmember of the DOCINFO structure.

Requirements

Header wingdi.h
Library Mgprint.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Printing Functions
EndDoc
StartPage
DOCINFO