次の方法で共有


Gdi::StartDocW_I (Windows Embedded CE 6.0)

1/6/2010

This method starts a print job.

Syntax

static WINGDIAPI int WINAPI StartDocW_I(
  HDC hdc, 
  CONST DOCINFO* lpdi
);

Parameters

  • hdc
    [in] Handle to the device context 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

This value is the print job identifier for the document.

A value greater than zero indicates success.

A value less than or equal to zero indicates failure.

To get extended error information, call GetLastError.

Remarks

This method is an internal version of the StartDoc function.

Applications should call the Gdi::StartDoc_I method immediately before beginning a print job. Using this method ensures that multipage documents are not interspersed with other print jobs.

Windows Embedded CE does not support printing to files and ignores the lpszOutput member of the DOCINFO structure.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Gdi
StartDoc
Gdi::EndDoc_I
Gdi::StartPage_I
DOCINFO